diff options
author | CartBlanche <savagesoftware@gmail.com> | 2020-01-28 13:37:40 +0300 |
---|---|---|
committer | CartBlanche <savagesoftware@gmail.com> | 2020-01-28 17:37:47 +0300 |
commit | 41a00d1e2ec53b56583fea6a38512c9fd0439a93 (patch) | |
tree | 1564ce39291d57ac2bde8e002148c51d94a482cb /Xamarin.PropertyEditing.Mac/Controls | |
parent | 108fccfb1f4408bfa2416fef8d4ddd841327a95a (diff) |
[Mac] Don't set Boolean control's title.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/BooleanEditorControl.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/BooleanEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BooleanEditorControl.cs index 1212fef..d9541a6 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/BooleanEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/BooleanEditorControl.cs @@ -8,12 +8,11 @@ namespace Xamarin.PropertyEditing.Mac internal class BooleanEditorControl
: PropertyEditorControl<PropertyViewModel<bool?>> { - const string setBezelColorSelector = "setBezelColor:"; - public BooleanEditorControl (IHostResourceProvider hostResource)
: base (hostResource) { BooleanEditor = new FocusableBooleanButton (); + BooleanEditor.Title = string.Empty; // update the value on 'enter' BooleanEditor.Activated += (sender, e) => { @@ -49,12 +48,10 @@ namespace Xamarin.PropertyEditing.Mac {
if (ViewModel.Value.HasValue) { BooleanEditor.State = ViewModel.Value.Value ? NSCellStateValue.On : NSCellStateValue.Off; - BooleanEditor.Title = ViewModel.Value.ToString (); BooleanEditor.AllowsMixedState = false; } else {
BooleanEditor.AllowsMixedState = true; BooleanEditor.State = NSCellStateValue.Mixed; - BooleanEditor.Title = string.Empty; } } |