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:
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/PredefinedValuesEditor.cs')
-rw-r--r--Xamarin.PropertyEditing.Mac/Controls/PredefinedValuesEditor.cs10
1 files changed, 6 insertions, 4 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/PredefinedValuesEditor.cs b/Xamarin.PropertyEditing.Mac/Controls/PredefinedValuesEditor.cs
index f402bf7..77f6edb 100644
--- a/Xamarin.PropertyEditing.Mac/Controls/PredefinedValuesEditor.cs
+++ b/Xamarin.PropertyEditing.Mac/Controls/PredefinedValuesEditor.cs
@@ -74,8 +74,8 @@ namespace Xamarin.PropertyEditing.Mac
}
}
- private NSComboBox comboBox;
- private NSPopUpButton popupButton;
+ private FocusableComboBox comboBox;
+ private FocusablePopUpButton popupButton;
private NSMenu popupButtonList;
private NSView firstKeyView;
@@ -113,8 +113,9 @@ namespace Xamarin.PropertyEditing.Mac
Font = NSFont.SystemFontOfSize (NSFont.SystemFontSizeForControlSize (NSControlSize.Small)),
TranslatesAutoresizingMaskIntoConstraints = false,
StringValue = String.Empty,
+ ProxyResponder = new ProxyResponder (this, ProxyRowType.SingleView)
};
-
+ this.popupButton.ProxyResponder = new ProxyResponder (this, ProxyRowType.SingleView);
this.popupButtonList = new NSMenu ();
this.popupButton.Menu = this.popupButtonList;
this.popupButton.Activated += PopupButton_Activated;
@@ -155,12 +156,13 @@ namespace Xamarin.PropertyEditing.Mac
LineBreakMode = NSLineBreakMode.TruncatingTail,
UsesSingleLineMode = true,
},
+ ProxyResponder = new ProxyResponder (this, ProxyRowType.SingleView),
ControlSize = NSControlSize.Small,
Font = NSFont.SystemFontOfSize (NSFont.SystemFontSizeForControlSize (NSControlSize.Small)),
TranslatesAutoresizingMaskIntoConstraints = false,
StringValue = String.Empty,
};
-
+ this.comboBox.ProxyResponder = new ProxyResponder (this, ProxyRowType.SingleView);
this.comboBox.SelectionChanged += ComboBox_SelectionChanged;
AddSubview (this.comboBox);