From 20aeb4a1ab23c2d0379f9b3f7ad4ea84af5fb224 Mon Sep 17 00:00:00 2001 From: bluepilledgreat <97983689+bluepilledgreat@users.noreply.github.com> Date: Thu, 23 Jan 2025 00:44:56 +0000 Subject: [PATCH] rename ZIndex to Panel.ZIndex --- Bloxstrap/Resources/CustomBootstrapperSchema.json | 2 +- Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Elements.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Bloxstrap/Resources/CustomBootstrapperSchema.json b/Bloxstrap/Resources/CustomBootstrapperSchema.json index e35b52a..3558700 100644 --- a/Bloxstrap/Resources/CustomBootstrapperSchema.json +++ b/Bloxstrap/Resources/CustomBootstrapperSchema.json @@ -11,12 +11,12 @@ "Width": "double", "HorizontalAlignment": "HorizontalAlignment", "VerticalAlignment": "VerticalAlignment", - "ZIndex": "int", "RenderTransform": "Transform", "LayoutTransform": "Transform", "Opacity": "double", "OpacityMask": "Brush", "RenderTransformOrigin": "Point", + "Panel.ZIndex": "int", "Grid.Row": "int", "Grid.RowSpan": "int", "Grid.Column": "int", diff --git a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Elements.cs b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Elements.cs index 5a569b6..6576e15 100644 --- a/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Elements.cs +++ b/Bloxstrap/UI/Elements/Bootstrapper/CustomDialog.Elements.cs @@ -313,7 +313,7 @@ namespace Bloxstrap.UI.Elements.Bootstrapper if (renderTransformOrigin is Point) uiElement.RenderTransformOrigin = (Point)renderTransformOrigin; - int zIndex = ParseXmlAttributeClamped(xmlElement, "ZIndex", defaultValue: 0, min: 0, max: 1000); + int zIndex = ParseXmlAttributeClamped(xmlElement, "Panel.ZIndex", defaultValue: 0, min: 0, max: 1000); Panel.SetZIndex(uiElement, zIndex); int gridRow = ParseXmlAttribute(xmlElement, "Grid.Row", 0);