diff options
author | Dominique Louis <savagesoftware@gmail.com> | 2017-07-06 22:38:48 +0300 |
---|---|---|
committer | Dominique Louis <savagesoftware@gmail.com> | 2017-07-07 19:18:55 +0300 |
commit | a0e25ba4c99303143365f3ebcfc1ba194f4b96ab (patch) | |
tree | dfd6daf26fccdddcab1a8ce283e7cb08f4ed9236 /Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs | |
parent | 3393680c6b4aceac7d7b7b7d4d36f91d225e3a9e (diff) |
Make UnfocusableTextView an UnfocusableTextField to appease the layering gods.
Diffstat (limited to 'Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs')
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs b/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs index a8a6b0a..d21b2d1 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/BaseRectangleEditorControl.cs @@ -11,13 +11,13 @@ namespace Xamarin.PropertyEditing.Mac internal abstract class BaseRectangleEditorControl<T> : PropertyEditorControl where T : struct { - protected UnfocusableTextView XLabel { get; set; } + protected UnfocusableTextField XLabel { get; set; } protected NSTextField XEditor { get; set; } - protected UnfocusableTextView YLabel { get; set; } + protected UnfocusableTextField YLabel { get; set; } protected NSTextField YEditor { get; set; } - protected UnfocusableTextView WidthLabel { get; set; } + protected UnfocusableTextField WidthLabel { get; set; } protected NSTextField WidthEditor { get; set; } - protected UnfocusableTextView HeightLabel { get; set; } + protected UnfocusableTextField HeightLabel { get; set; } protected NSTextField HeightEditor { get; set; } public override NSView FirstKeyView => XEditor; @@ -30,28 +30,28 @@ namespace Xamarin.PropertyEditing.Mac public BaseRectangleEditorControl () { - XLabel = new UnfocusableTextView (); + XLabel = new UnfocusableTextField (); XEditor = new NSTextField (); XEditor.BackgroundColor = NSColor.Clear; XEditor.StringValue = string.Empty; XEditor.Activated += OnInputUpdated; XEditor.EditingEnded += OnInputUpdated; - YLabel = new UnfocusableTextView (); + YLabel = new UnfocusableTextField (); YEditor = new NSTextField (); YEditor.BackgroundColor = NSColor.Clear; YEditor.StringValue = string.Empty; YEditor.Activated += OnInputUpdated; YEditor.EditingEnded += OnInputUpdated; - WidthLabel = new UnfocusableTextView (); + WidthLabel = new UnfocusableTextField (); WidthEditor = new NSTextField (); WidthEditor.BackgroundColor = NSColor.Clear; WidthEditor.StringValue = string.Empty; WidthEditor.Activated += OnInputUpdated; WidthEditor.EditingEnded += OnInputUpdated; - HeightLabel = new UnfocusableTextView (); + HeightLabel = new UnfocusableTextField (); HeightEditor = new NSTextField (); HeightEditor.BackgroundColor = NSColor.Clear; HeightEditor.StringValue = string.Empty; |