dotMorten / WinUIEx

WinUI Extensions
https://dotmorten.github.io/WinUIEx
MIT License
572 stars 36 forks source link

[Question] Using last Backdrop update in MAUI #145

Closed Slals closed 8 months ago

Slals commented 8 months ago

Hi,

I got curious by the last update with transparent backdrop. I saw the doc for setting up WinUIEx with MAUI, which works nicely. But regarding the part for adding a Backdrop I'm quite lost. The doc here https://dotmorten.github.io/WinUIEx/concepts/CustomBackdrops.html is showing how to add backdrop using XAML and <Window> tag but I didn't manage to find a way to do it in my MAUI app. Anyone has an idea?

dotMorten commented 8 months ago

Did you see https://dotmorten.github.io/WinUIEx/concepts/Maui.html#perform-operations-when-windows-are-created

Note that MAUI usually sets a background color that'll block the backdrop

dotMorten commented 8 months ago

Also see sample https://github.com/dotMorten/WinUIEx/blob/7c01aecf13753c045a9f0569b3a2beb2135ec2f7/src/WinUIExMauiSample/MauiProgram.cs#L31

Closing issue since there's no bug here. You can use the discussions tab for questions.