mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
add title attribute to custombloxstrapbootstrapper
This commit is contained in:
parent
d924349a79
commit
5f7ca580e4
@ -30,7 +30,8 @@
|
||||
"SuperClass": "Control",
|
||||
"IsCreatable": true,
|
||||
"Attributes": {
|
||||
"Theme": "Theme"
|
||||
"Theme": "Theme",
|
||||
"Title": "string"
|
||||
}
|
||||
},
|
||||
"TitleBar": {
|
||||
|
@ -501,6 +501,9 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
||||
dialog.Margin = new Thickness(0, 0, 0, 0);
|
||||
dialog.Padding = new Thickness(0, 0, 0, 0);
|
||||
|
||||
string? title = xmlElement.Attribute("Title")?.Value?.ToString() ?? "Bloxstrap";
|
||||
dialog.Title = title;
|
||||
|
||||
return new DummyFrameworkElement();
|
||||
}
|
||||
|
||||
@ -528,7 +531,6 @@ namespace Bloxstrap.UI.Elements.Bootstrapper
|
||||
dialog.RootTitleBar.ShowClose = ParseXmlAttribute<bool>(xmlElement, "ShowClose", true);
|
||||
|
||||
string? title = xmlElement.Attribute("Title")?.Value?.ToString() ?? "Bloxstrap";
|
||||
dialog.Title = title;
|
||||
dialog.RootTitleBar.Title = title;
|
||||
|
||||
return new DummyFrameworkElement(); // dont add anything
|
||||
|
Loading…
Reference in New Issue
Block a user