MaterialDesignInXAML / MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.
http://materialdesigninxaml.net
MIT License
14.92k stars 3.4k forks source link

DrawerHost Set LeftDrawerCornerRadius, IsLeftDrawerOpen is true, OverlayBackground not set CornerRadius. #3412

Open xielong12 opened 7 months ago

xielong12 commented 7 months ago

Bug explanation

DialogHost set CornerRadius="18"; DrawerHost set LeftDrawerCornerRadius="18,0,0,18" OverlayBackground="Red"; When IsLeftDrawerOpen is open,OverlayBackground not have CornerRadius. DrawerHost bug DrawerHost bug

Version

4.9.0

nicolaihenriksen commented 7 months ago

@xielong12 I suspect the rounded corners on the application window is from a MahApps/ControlzEx window rather than from just plain Window in Windows11? If so, could you share some basic XAML with the window setup and the DrawerHost? Thanks.

xielong12 commented 7 months ago

@xielong12 I suspect the rounded corners on the application window is from a MahApps/ControlzEx window rather than from just plain Window in Windows11? If so, could you share some basic XAML with the window setup and the DrawerHost? Thanks.

First of all, thank you for your answer. In the end, I chose the window rounded corner following system. Hidden the title and buttons of the form. Set WindowStyle="SingleBorderWindow" Set UseAeroCaptionButtons="False"

nicolaihenriksen commented 5 months ago

@xielong12 Sorry for the long delay in answering, I have been completely drowning in other stuff lately. Would it be possible for you to create a small sample app with the WindowChrome you want that shows the issue with the DialogHost? Just a simple app that can pop the DialogHost by clicking a button or similar would suffice. Thanks.