From: Jean-Philippe Bruyère Date: Sat, 27 Mar 2021 13:12:00 +0000 (+0100) Subject: Visible renamed IsVisible X-Git-Tag: v0.9.5-beta~46 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=bb9053da569aceaa3f58a97bfbc42c7a178cf9a1;p=jp%2Fcrow.git Visible renamed IsVisible --- diff --git a/Crow/src/Widgets/Widget.cs b/Crow/src/Widgets/Widget.cs index 29424df3..866f51c5 100644 --- a/Crow/src/Widgets/Widget.cs +++ b/Crow/src/Widgets/Widget.cs @@ -898,16 +898,24 @@ namespace Crow /// /// set the visible state of the control, invisible controls does reserve space in the layouting system. /// - [DesignCategory ("Appearance")][DefaultValue(true)] + [Obsolete][DesignCategory ("Appearance")][DefaultValue(true)] public virtual bool Visible { - get { return isVisible; } + get => IsVisible; + set => IsVisible = value; + } + /// + /// set the visible state of the control, invisible controls does reserve space in the layouting system. + /// + [DesignCategory ("Appearance")][DefaultValue(true)] + public virtual bool IsVisible { + get => isVisible; set { if (value == isVisible) return; isVisible = value; - if (!Visible) + if (!isVisible) unshownPostActions (); RegisterForLayouting (LayoutingType.Sizing);