© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
Mek

✅ 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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Avalonia MVVM
C#CC# / help
2y ago
MVVM How to make observablecollection<string> always contain a string
C#CC# / help
2y ago
Avalonia ListBox pass selected DataTemplate
C#CC# / help
2y ago