MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

Dialoghost incompatibility with Border (CornerRadius).

Open Logikoz opened this issue 4 years ago • 2 comments

image

Logikoz avatar Dec 01 '19 00:12 Logikoz

This is due to the fact that dialogs are displayed as part of a Popup control. In addition the Popup control defaults its AllowTransparency to false for a number of performance reasons. Now it is possible to fix that with the new DialogHost style, but then the nested Card that contains the popup has a fixed background that is difficult to change. I do think it is worth exploring adding some control over these properties to the DialogHost to make them more configurable.

For now here is a sample (with a little bit if tickery) that can get you the look that you want: https://github.com/Keboo/MaterialDesignInXaml.Examples/tree/master/DialogHost/DialogHost.CornerRadius

Keboo avatar Dec 01 '19 05:12 Keboo

So,What is the solution?

ErickWei avatar May 11 '22 03:05 ErickWei