Browse Source

Fixed checkbox code in scenarios

Tig 1 năm trước cách đây
mục cha
commit
e365e8e34b

+ 1 - 1
UICatalog/Scenarios/TextAlignmentAndDirection.cs

@@ -484,7 +484,7 @@ public class TextAlignmentAndDirection : Scenario
             Enabled = false
         };
 
-        justifyCheckbox.Toggle += (s, e) => ToggleJustify (e.NewValue == CheckState.Checked);
+        justifyCheckbox.Toggle += (s, e) => ToggleJustify (e.NewValue != CheckState.Checked);
 
         justifyOptions.SelectedItemChanged += (s, e) => { ToggleJustify (false, true); };
 

+ 1 - 0
UICatalog/Scenarios/TrueColors.cs

@@ -34,6 +34,7 @@ public class TrueColors : Scenario
             Y = y++,
             State = canTrueColor ? CheckState.Checked : CheckState.UnChecked,
             CanFocus = false,
+            Enabled = false,
             Text = "Driver supports true color "
         };
         app.Add (cbSupportsTrueColor);