aboutsummaryrefslogtreecommitdiffstatsci
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-03-27 14:12:00 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-03-27 14:12:00 +0100
commitbb9053da569aceaa3f58a97bfbc42c7a178cf9a1 (patch)
tree5159e2c64cb636690b3b50674da6ba8ab985357f
parent8acdcdfe818c682964d00665d6e92a3b01bcf0eb (diff)
Visible renamed IsVisible
-rw-r--r--Crow/src/Widgets/Widget.cs14
1 files changed, 11 insertions, 3 deletions
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
/// <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);