-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support NavigationService by type #2147
Comments
Hey in one of the projects I have been working on I build a menu generator that has similar functionality, e.g., passing by type. I created some extensions on the navigation service. I'll create a PR with this to see if it fixes this issue. Edit Just realised you have done this already |
Hehe sorry @b099l3 it would be nice seeing some other contributions then! I don't know what sort of menu generator you made, but i would like to have some bindings for the Android |
I was basically using reflection to create generic
Its quite brittle but needed to finish the project quick. I see the Navigate method signature has changed so I won't need my extension in Mvx 5.2 👍 |
Steps to reproduce
I'm trying to update this line from MvvmCross 4.4.0 to 5.1.1:
Where item.ViewModelType (System.Type) contains the typeof a MvxViewModel. Ex:
I'm doing this because I have a list of items with different ViewModel to navigate in a single MvxCommand.
Expected behavior
Navigate through a ViewModel by type.
Actual behavior
NavigationService does not support navigation by System.Type.
Configuration
Version: 5.1.1
Platform:
The text was updated successfully, but these errors were encountered: