Avalonia ViewLocator not ViewLocating
I have an Avalonia project with multiple pages like MainView and LoginView and SettingsView etc, pretty standard stuff
But now I have the following problem, trying to set my
The program workflow goes like this:
The program starts -> the program sets the
But now I have the following problem, trying to set my
ViewModelBase.ContentViewModel to something will result in the ContentViewModel being null for no apparent reasonThe program workflow goes like this:
The program starts -> the program sets the
DataContext to new MainViewModel() -> MainViewModel checks if the user is logged in to an account, if not it will set ContentViewModel to new LoginViewModel(), in the LoginView the user is supposed to log into an account which is then supposed to set the ContentViewModel to a new MainViewModel(), but instead the ContentViewModel is null