diff --git a/Terminal.Gui/ViewBase/View.Drawing.Scheme.cs b/Terminal.Gui/ViewBase/View.Drawing.Scheme.cs index 876e14fca..dcd28794b 100644 --- a/Terminal.Gui/ViewBase/View.Drawing.Scheme.cs +++ b/Terminal.Gui/ViewBase/View.Drawing.Scheme.cs @@ -26,7 +26,7 @@ public partial class View set { CWPPropertyHelper.ChangeProperty ( - _schemeName, + ref _schemeName, value, OnSchemeNameChanging, SchemeNameChanging, @@ -209,7 +209,7 @@ public partial class View public bool SetScheme (Scheme? scheme) { return CWPPropertyHelper.ChangeProperty ( - _scheme, + ref _scheme, scheme, OnSettingScheme, SchemeChanging, diff --git a/Terminal.Gui/ViewBase/View.Layout.cs b/Terminal.Gui/ViewBase/View.Layout.cs index b12e2b78c..2f5a4660c 100644 --- a/Terminal.Gui/ViewBase/View.Layout.cs +++ b/Terminal.Gui/ViewBase/View.Layout.cs @@ -328,7 +328,7 @@ public partial class View // Layout APIs set { CWPPropertyHelper.ChangeProperty ( - _height, + ref _height, value, OnHeightChanging, HeightChanging, @@ -416,7 +416,7 @@ public partial class View // Layout APIs set { CWPPropertyHelper.ChangeProperty ( - _width, + ref _width, value, OnWidthChanging, WidthChanging,