]> O.S.I.I.S - jp/crow.git/commitdiff
Visible renamed IsVisible
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 27 Mar 2021 13:12:00 +0000 (14:12 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Sat, 27 Mar 2021 13:12:00 +0000 (14:12 +0100)
Crow/src/Widgets/Widget.cs

index 29424df3fafe6d1cfd642444bfc70af217e8592d..866f51c5c4bfcf7fe0ae4974ac89d899b9b7e0d1 100644 (file)
@@ -898,16 +898,24 @@ namespace Crow
                /// <summary>
                /// set the visible state of the control, invisible controls does reserve space in the layouting system.
                /// </summary>
-               [DesignCategory ("Appearance")][DefaultValue(true)]
+               [Obsolete][DesignCategory ("Appearance")][DefaultValue(true)]
                public virtual bool Visible {
-                       get { return isVisible; }
+                       get => IsVisible;
+                       set => IsVisible = value;
+               }
+               /// <summary>
+               /// set the visible state of the control, invisible controls does reserve space in the layouting system.
+               /// </summary>
+               [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);