Open GeorgeVelikov opened 3 years ago
@GeorgeVelikov can you attach a repro please?
@PureWeen Yeah, I'll create one some time tomorrow GMT
@PureWeen I have added a reproduction for this issue.
The page in question is "BrokenPage"
@PureWeen the issue is coming from the TemplateBinding in the ContentPageTemplate in App.xaml
If I remove the template binding, then everything works as expected.
Edit: However it breaks some functionality I rely on within the control template (so it doesn't actually work as expected)
This seems to be related to https://github.com/xamarin/Xamarin.Forms/issues/13497
I am using a template binding in a ControlTemplate in this case, and wouldn't have expected an issue
Update:
So it looks like this is an issue with the binding context being set on the content page once it's added in the visual tree. The binding context is overriden by the inherited binding context.
Description
Setting the BindingContext of a page with some null BindingContext and then pushing it seems to turn back to the "inherited" BindingContext
Steps to Reproduce
If you're using my repro
Expected Behavior
Pushed Page to have the manually set BindingContext
Actual Behavior
Pushed Page has the inherited BindingContext
Basic Information
Workaround
N/A, couldn't figure a workaround for this, keeping my app at 4.8 SR 6 for now
Reproduction
The page in question is "BrokenPage"
XF5ShellIssues.zip