Navigation Problem In Xamarin Forms
I am using Xamarin Forms in Visual Studio Community 2022 version 17.7.5
I have many screen in my app , After splash there are onboarding screen and then dashboard screen , in dashboard screen there are two option one is signup and second is login. Inside signup there are three more screen and then navigate back to dashboard screen ,
The problem are occur after the login screen i am unable to navigate to other page, when i am not adding any control in Login page then the navigation are working fine , but when i add some control in login page i am only navigating to one page after that one page navigation are not working .
I am adding my View Model Code which i used for navigation
public class LoginViewModel : INotifyPropertyChanged
{
#region Properties
public INavigation Navigation { get; set; }
#endregion
public event PropertyChangedEventHandler PropertyChanged;
public LoginViewModel(INavigation navigation)
{
Navigation = navigation;
}
public Command SignupCommand
{
get
{
return new Command(async (e) =>
{
await Navigation.PushAsync(new SignupPage());
});
}
}
public Command LoginCommand
{
get
{
return new Command(async (e) =>
{
await Navigation.PushAsync(new NewJoinerPage());
});
}
}
protected virtual void OnPropertyChanged([CallerMemberName] string propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}