FlyoutBase and DataContext #9923
SkyeHoefling
started this conversation in
General
Replies: 1 comment 1 reply
-
Indeed, at present time, DataContext is a property of Internally, that's pretty much how WinUI works, but the property is not exposed publicly. We may end up changing this at some point in the future to have better API alignment, but for now, since it's not breaking for most pieces of code, we'll keep it that way. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
WindowsAppSDK Version: 1.1.5
Uno.WinUI Version: 4.5.9
The Uno.WinUI implementation of
FlyoutBase
contains aDataContext
where the WinUI implementation does not. I'm wondering if this is a bug, as we need to add special code for WinUI vs our Uno.WinUI target headsAccording to the official documentation from WinUI the
Flyout
doesn't have aDataContext
and it uses the one from the attached control. Consider you attach aFlyout
to aButton
, thatFlyout
will use theDataContext
set on the Button.You can see more examples on the WinUI documentation guidelines https://learn.microsoft.com/en-us/windows/apps/design/controls/dialogs-and-flyouts/flyouts. I have added them below as well
Beta Was this translation helpful? Give feedback.
All reactions