add IgnoreTitleBarInset

This commit is contained in:
bluepilledgreat 2025-01-22 18:56:50 +00:00
parent 03ad1b535a
commit 0f39f1514a
2 changed files with 9 additions and 1 deletions

View File

@ -43,7 +43,8 @@
"IsCreatable": true,
"Attributes": {
"Theme": "Theme",
"Title": "string"
"Title": "string",
"IgnoreTitleBarInset": "bool"
}
},
"TitleBar": {

View File

@ -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();
}