diff --git a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs index deb0857..fc12829 100644 --- a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs +++ b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Creator.cs @@ -335,6 +335,7 @@ namespace Bloxstrap.UI.Elements.Bootstrapper uiElement.Name = name; uiElement.Visibility = ParseXmlAttribute(xmlElement, "Visibility", Visibility.Visible); + uiElement.IsEnabled = ParseXmlAttribute(xmlElement, "IsEnabled", true); object? margin = GetThicknessFromXElement(xmlElement, "Margin"); if (margin != null) @@ -379,6 +380,7 @@ namespace Bloxstrap.UI.Elements.Bootstrapper private static void HandleXmlElement_BloxstrapCustomBootstrapper(CustomDialog dialog, XElement xmlElement) { xmlElement.SetAttributeValue("Visibility", "Collapsed"); // don't show the bootstrapper yet!!! + xmlElement.SetAttributeValue("IsEnabled", "True"); HandleXmlElement_Control(dialog, dialog, xmlElement); var theme = ParseXmlAttribute(xmlElement, "Theme", Theme.Default); @@ -396,6 +398,7 @@ namespace Bloxstrap.UI.Elements.Bootstrapper private static void HandleXmlElement_TitleBar(CustomDialog dialog, XElement xmlElement) { xmlElement.SetAttributeValue("Name", "TitleBar"); // prevent two titlebars from existing + xmlElement.SetAttributeValue("IsEnabled", "True"); HandleXmlElement_Control(dialog, dialog.RootTitleBar, xmlElement); Panel.SetZIndex(dialog.RootTitleBar, 1001); // always show above others