
I am trying to make window with rounded corners like windows has in Windows 11 (made big CornerRadius for example to see bug on both Windows 10 and Windows 11), but I have two problems. Added sample application source code to reproduce first bug - link.
1. ChromedTitleBar forces Window shadows and borders to be visible. In sample application first Window has ChromedTitleBar and it forces somehow shadows and borders of Window to be visible and I cant hide them. Second Window does not have ChromedTitleBar and it behaves as expected.
To see second Window in sample application change
desktop.MainWindow = new MainWindow();
to
desktop.MainWindow = new MainWindow2();
in App.axaml.cs
2. To make rounded corners I have to put DockPanel with ChromedTitleBar into two borders, but if any of this borders have backgroud then ChromedTitleBar becomes non-draggable.
<Border CornerRadius="50" BorderBrush="{actipro:ThemeResource Container2BorderBrush}" BorderThickness="2">
<Border CornerRadius="49" ClipToBounds="True">
Could you add possibility to hide shadows and borders of window when using ChromedTitleBar or add possibility to set CornerRadius and border brush/thickness of window when using ChromedTitleBar?
[Modified 1 year ago]