mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
add WindowCornerPreference
This commit is contained in:
parent
586dad03f4
commit
ff8466f0f5
@ -45,7 +45,8 @@
|
|||||||
"Version": "int",
|
"Version": "int",
|
||||||
"Theme": "Theme",
|
"Theme": "Theme",
|
||||||
"Title": "string",
|
"Title": "string",
|
||||||
"IgnoreTitleBarInset": "bool"
|
"IgnoreTitleBarInset": "bool",
|
||||||
|
"WindowCornerPreference": "WindowCornerPreference"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"TitleBar": {
|
"TitleBar": {
|
||||||
@ -507,6 +508,14 @@
|
|||||||
"Horizontal",
|
"Horizontal",
|
||||||
"Vertical"
|
"Vertical"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"WindowCornerPreference": {
|
||||||
|
"Values": [
|
||||||
|
"Default",
|
||||||
|
"DoNotRound",
|
||||||
|
"Round",
|
||||||
|
"RoundSmall"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -387,6 +387,8 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
|||||||
dialog.Resources.MergedDictionaries.Add(new ThemesDictionary() { Theme = wpfUiTheme });
|
dialog.Resources.MergedDictionaries.Add(new ThemesDictionary() { Theme = wpfUiTheme });
|
||||||
dialog.DefaultBorderThemeOverwrite = wpfUiTheme;
|
dialog.DefaultBorderThemeOverwrite = wpfUiTheme;
|
||||||
|
|
||||||
|
dialog.WindowCornerPreference = ParseXmlAttribute<Wpf.Ui.Appearance.WindowCornerPreference>(xmlElement, "WindowCornerPreference", Wpf.Ui.Appearance.WindowCornerPreference.Round);
|
||||||
|
|
||||||
// disable default window border if border is modified
|
// disable default window border if border is modified
|
||||||
if (xmlElement.Attribute("BorderBrush") != null || xmlElement.Attribute("BorderThickness") != null)
|
if (xmlElement.Attribute("BorderBrush") != null || xmlElement.Attribute("BorderThickness") != null)
|
||||||
dialog.DefaultBorderEnabled = false;
|
dialog.DefaultBorderEnabled = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user