diff --git a/Bloxstrap/Resources/CustomBootstrapperSchema.json b/Bloxstrap/Resources/CustomBootstrapperSchema.json index df53076..44b6631 100644 --- a/Bloxstrap/Resources/CustomBootstrapperSchema.json +++ b/Bloxstrap/Resources/CustomBootstrapperSchema.json @@ -45,7 +45,8 @@ "Version": "int", "Theme": "Theme", "Title": "string", - "IgnoreTitleBarInset": "bool" + "IgnoreTitleBarInset": "bool", + "WindowCornerPreference": "WindowCornerPreference" } }, "TitleBar": { @@ -507,6 +508,14 @@ "Horizontal", "Vertical" ] + }, + "WindowCornerPreference": { + "Values": [ + "Default", + "DoNotRound", + "Round", + "RoundSmall" + ] } } } \ No newline at end of file diff --git a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Elements.cs b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Elements.cs index e85f4f1..d5e8b19 100644 --- a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Elements.cs +++ b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Elements.cs @@ -387,6 +387,8 @@ namespace Bloxstrap.UI.Elements.Bootstrapper dialog.Resources.MergedDictionaries.Add(new ThemesDictionary() { Theme = wpfUiTheme }); dialog.DefaultBorderThemeOverwrite = wpfUiTheme; + dialog.WindowCornerPreference = ParseXmlAttribute(xmlElement, "WindowCornerPreference", Wpf.Ui.Appearance.WindowCornerPreference.Round); + // disable default window border if border is modified if (xmlElement.Attribute("BorderBrush") != null || xmlElement.Attribute("BorderThickness") != null) dialog.DefaultBorderEnabled = false;