MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

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

Open xielong12 opened this issue 1 year ago • 3 comments

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

xielong12 avatar Dec 08 '23 03:12 xielong12

@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.

nicolaihenriksen avatar Dec 08 '23 16:12 nicolaihenriksen

@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"

<WindowChrome.WindowChrome> <WindowChrome UseAeroCaptionButtons="False"/> </WindowChrome.WindowChrome>

xielong12 avatar Dec 12 '23 01:12 xielong12

@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.

nicolaihenriksen avatar Feb 12 '24 20:02 nicolaihenriksen