✅ How To Pass A String or LoginModel back through navigation Avalonia.MVVM
LoginView.axaml: https://pastebin.com/hnwBdAe9
MainWindowViewModel.cs: https://pastebin.com/6LMgkL0c
LoginViewModel.cs: https://pastebin.com/0aZknjcQ
How would I click the "Forgot Password" or "New User" buttons and send back a simple string that says "forgot" for Forgot Passowrd or "new" for New User and if I click Login, it attempts to login? In passing either a string or a LoginModel back to the MainWindowViewModel, how would I go about determining which one it is being sent back in the else clause of the ValidateUserLogin function? Thanks in advance
0 Replies