diff --git a/src/Design.cs b/src/Design.cs index 03bab06e..4b6fae7f 100644 --- a/src/Design.cs +++ b/src/Design.cs @@ -163,8 +163,8 @@ public Design CreateSubControlDesign(string name, View subView) super.Remove(subView); if (subView.Border != null) { - subView.Border.BorderBrush = (Color)borderBrush!; - subView.Border.Background = (Color)background!; + subView.Border.BorderBrush = borderBrush!; + subView.Border.Background = background!; } }