diff options
author | Eric Maupin <ermaup@microsoft.com> | 2019-01-04 21:32:57 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2019-01-11 23:19:25 +0300 |
commit | 0b8a00a40e7c387140bf020d9f45384caa03744f (patch) | |
tree | 12b9af58dd7c20285a1e3bb1df6835deb113f2b1 | |
parent | 71ad75860e1c5b6c33163d390988dbfbf409b4ac (diff) |
[mac] Listen to BackgroundStyle in UnfocusableTextField
This fixes foreground color for this view not changing when a row containing it is selected
-rw-r--r-- | Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableTextField.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableTextField.cs b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableTextField.cs index cafad65..a55341e 100644 --- a/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableTextField.cs +++ b/Xamarin.PropertyEditing.Mac/Controls/Custom/UnfocusableTextField.cs @@ -1,6 +1,7 @@ using System; using AppKit; using CoreGraphics; +using Foundation; namespace Xamarin.PropertyEditing.Mac { @@ -38,6 +39,12 @@ namespace Xamarin.PropertyEditing.Mac internal set { this.label.TextColor = value; } } + public virtual NSBackgroundStyle BackgroundStyle + { + [Export ("backgroundStyle")] get => this.label.Cell.BackgroundStyle; + [Export ("setBackgroundStyle:")] set => this.label.Cell.BackgroundStyle = value; + } + public UnfocusableTextField () { SetDefaultTextProperties (); |