Proposal for the ability to populate the ViewModel in the View's BindingContext with ServiceCollectionExtensions. #636
Closed
StdEnku
started this conversation in
New Feature Discussions
Replies: 1 comment
-
Closed as per the Community Stand-up discussion here: https://youtu.be/N9wMcBP4jtg?t=2889 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
Thank you for providing us with a very simple and easy-to-use library.
Currently, it is possible to register a View and a ViewModel in a DI container at the same time using the extension method defined in the ServiceCollectionExtensions, but I would like to have the ability to register a ViewModel instance in the View's BindingContext in that method.
Specifically, this could be accomplished by modifying all the extension methods as shown in the code below.
Adding that functionality would eliminate the need to inject a ViewModel instance in the View's code-behind.
Beta Was this translation helpful? Give feedback.
All reactions