-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 Partial Views in Xamarin Forms #1519
Conversation
This PR is exactly what we're looking for. |
Can be released with 7.1 or next preview? |
this is still TBD.... @brianlagunas and I are still determining how the feature should work and whether we should go with something simple like this, or more complex where we introduce Regions to Xamarin Forms like we have in WPF. |
The Regions would be really useful but in the meantime, this solution allows to split views. Very useful while waiting for the Regions maybe in a future version. |
We really really really need this in 7.1, go with what's implemented for now.....pleeeease. |
c3666bf
to
51460fa
Compare
when l use partial view,binding property can not work.how to fix? |
@Snsaiu if you have a question please ask it on StackOverflow. If you believe you have run into a bug please open an issue and provide a sample reproducing the issue. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description of Change
Adds an ability to support Partial Views that have their own ViewModel which can be reused across multiple Pages in a single application. This sets the AutowireViewModel property behind the scenes and updates the ResolveViewModelForView in each of the Container projects to look for an associated Page if the View is not a Page.
Example
API Changes
Added:
ViewModelLocator.AutowirePartialView
. This takes a reference to the associated PageBehavioral Changes
PR Checklist