diff options
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/EntryPropertyEditor.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/EntryPropertyEditor.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/EntryPropertyEditor.cs b/Xamarin.PropertyEditing.Mac/Controls/EntryPropertyEditor.cs index 1ab1b64..1017d99 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/EntryPropertyEditor.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/EntryPropertyEditor.cs @@ -44,6 +44,11 @@ namespace Xamarin.PropertyEditing.Mac }; AddSubview (Entry); + Entry.Delegate = new TextNextResponderDelegate () + { + ProxyResponder = new RowProxyResponder(this, ProxyRowType.SingleView) + }; + RightEdgeConstraint = NSLayoutConstraint.Create (Entry, NSLayoutAttribute.Right, NSLayoutRelation.Equal, this, NSLayoutAttribute.Right, 1f, 0); AddConstraints (new[] { NSLayoutConstraint.Create (Entry, NSLayoutAttribute.CenterY, NSLayoutRelation.Equal, this, NSLayoutAttribute.CenterY, 1f, 0), @@ -88,7 +93,7 @@ namespace Xamarin.PropertyEditing.Mac { var propertyEditorDelegate = new EntryPropertyEditorDelegate<T> (viewModel) { - ProxyResponder = new RowProxyResponder (this, ProxyRowType.SingleView) + ProxyResponder = new RowProxyResponder (this, ProxyRowType.SingleView) }; return propertyEditorDelegate; } |