Repository navigation
fix: Don't propagate DataContext via Border.Child - #4192
Conversation
|
Looks like there are two PRs in one :) |
|
The build 20171 found UI Test snapshots differences: Details
|
Restore the Uno 2.x behaviour whereby Border.ChildProperty doesn't propagate inherited values (including DataContext) to the property value. The inheritance is handled by the visual tree in the normal case (since Child is always a view). This restores the ability for the framework to call SetParent() to simulate a different inheritance hierarchy than the actual visual tree configuration, eg for AppBarButton using the native style.
7976998 to
b228b16
Compare
Oops I forgot to wait until the other PR was merged 😆 Should be better now |
|
The build 20178 found UI Test snapshots differences: Details
|
|
The build 20178 found UI Test snapshots differences: Details
|
|
The build 20178 found UI Test snapshots differences: Details
|
|
The build 20178 found UI Test snapshots differences: Details
|
|
The build 20178 found UI Test snapshots differences: Details
|
|
The build 20178 found UI Test snapshots differences: Details
|
|
The build 20178 found UI Test snapshots differences: Details
|
Wait for the updated DataContext and binding asynchronously. This fixes Android failure (since Parent gets set on native loaded in the case of Border.Child), and actually fixes UWP where DataContext is also seemingly propagated asynchronously and only after the visual subtree is attached to the window.
|
The build 20233 found UI Test snapshots differences: Details
|
GitHub Issue (If applicable): #
Restore the Uno 2.x behaviour whereby Border.ChildProperty doesn't propagate inherited values (including DataContext) to the property value. The inheritance is handled by the visual tree in the normal case (since Child is always a view).
This restores the ability for the framework to call SetParent() to simulate a different inheritance hierarchy than the actual visual tree configuration, eg for AppBarButton using the native style.
PR Type
What kind of change does this PR introduce?
What is the current behavior?
What is the new behavior?
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Runresults.Other information
Internal Issue (If applicable):
fixes https://github.com/unoplatform/nventive-private/issues/23