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:
authorDominique Louis <savagesoftware@gmail.com>2017-07-07 19:14:17 +0300
committerDominique Louis <savagesoftware@gmail.com>2017-07-07 19:49:20 +0300
commit6a58d44ff1fbd4a9d836989d7dff53ce5d614c02 (patch)
tree4ab7fef054fff6a047ed5914c5c0e68d70f7fb16 /Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs
parent3d83e64ef32940e6b9e06b0b985701395097880c (diff)
Tweak the position of Boolean, Enum, Point and Rect editors.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs')
-rw-r--r--Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs b/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs
index 8788ddb..6da37f1 100644
--- a/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs
+++ b/Xamarin.PropertyEditing.Mac/PropertyEditorPanel.cs
@@ -88,6 +88,9 @@ namespace Xamarin.PropertyEditing.Mac
{
AutoresizingMask = NSViewResizingMask.WidthSizable | NSViewResizingMask.HeightSizable;
+ PropertiesViewModel.ViewModelMap.Add (typeof (CGPoint), (p, e) => new PropertyViewModel<CGPoint> (p, e));
+ PropertiesViewModel.ViewModelMap.Add (typeof (CGRect), (p, e) => new PropertyViewModel<CGRect> (p, e));
+
propertyFilter = new NSSearchField (new CGRect (10, Frame.Height - 25, 170, 24)) {
TranslatesAutoresizingMaskIntoConstraints = false,
PlaceholderString = "Property Filter", // TODO Localize