-
Notifications
You must be signed in to change notification settings - Fork 770
Updating acrylic usage for XAML islands #5179
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
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
…t exist in system XAML.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
I'm assuming these changes are only related to WinUI 2.X versions, and WinUI 3.X doesn't use any System Acrylic? (Which for 3.0 means in app acrylic only until HostBackdrop is working) |
This is not correct. Flyouts in system XAML islands can show up on top of non-app content. This change would make so that it wouldn't be transparent to non-app content. |
I thought WinUI 2.0 XAML Islands were bound to the app window? |
No, flyouts and MenuFlyouts will correctly show up outside the app window |
Yes, that's correct, this is only for WinUI 2.
From my testing, BackgroundSource="Backdrop" still works as expected when the flyout is over non-app content. |
Ah, if it still works then that's fine |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
We need to make two updates to get acrylic to work properly in XAML islands:
With these two changes, acrylic works properly in both a UWP app and a XAML islands app. I modified WpfApp to add some flyouts and a rainbow background to showcase this scenario and get a XAML islands app on which this can be tested, and also modified some pages in MUXControlsTestApp to add a rainbow background there as well to make it easier to tell if acrylic is working properly.