Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/Xamarin.PropertyEditing.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/BooleanEditorControl.cs5
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;
}
}