mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
add IgnoreTitleBarInset
This commit is contained in:
parent
03ad1b535a
commit
0f39f1514a
@ -43,7 +43,8 @@
|
||||
"IsCreatable": true,
|
||||
"Attributes": {
|
||||
"Theme": "Theme",
|
||||
"Title": "string"
|
||||
"Title": "string",
|
||||
"IgnoreTitleBarInset": "bool"
|
||||
}
|
||||
},
|
||||
"TitleBar": {
|
||||
|
@ -401,6 +401,13 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
||||
string? title = xmlElement.Attribute("Title")?.Value?.ToString() ?? "Bloxstrap";
|
||||
dialog.Title = title;
|
||||
|
||||
bool ignoreTitleBarInset = ParseXmlAttribute<bool>(xmlElement, "IgnoreTitleBarInset", false);
|
||||
if (ignoreTitleBarInset)
|
||||
{
|
||||
Grid.SetRow(dialog.ElementGrid, 0);
|
||||
Grid.SetRowSpan(dialog.ElementGrid, 2);
|
||||
}
|
||||
|
||||
return new DummyFrameworkElement();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user