diff options
Diffstat (limited to 'Xamarin.Forms.Core/Picker.cs')
-rw-r--r-- | Xamarin.Forms.Core/Picker.cs | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Xamarin.Forms.Core/Picker.cs b/Xamarin.Forms.Core/Picker.cs index ad85f489..0d85ea5c 100644 --- a/Xamarin.Forms.Core/Picker.cs +++ b/Xamarin.Forms.Core/Picker.cs @@ -10,10 +10,9 @@ using Xamarin.Forms.Platform; namespace Xamarin.Forms { [RenderWith(typeof(_PickerRenderer))] - public class Picker : View, IElementConfiguration<Picker> + public class Picker : View, ITextElement, IElementConfiguration<Picker> { - public static readonly BindableProperty TextColorProperty = - BindableProperty.Create(nameof(TextColor), typeof(Color), typeof(Picker), Color.Default); + public static readonly BindableProperty TextColorProperty = TextElement.TextColorProperty; public static readonly BindableProperty TitleProperty = BindableProperty.Create(nameof(Title), typeof(string), typeof(Picker), default(string)); @@ -59,8 +58,8 @@ namespace Xamarin.Forms } public Color TextColor { - get { return (Color)GetValue(TextColorProperty); } - set { SetValue(TextColorProperty, value); } + get { return (Color)GetValue(TextElement.TextColorProperty); } + set { SetValue(TextElement.TextColorProperty, value); } } public string Title { @@ -220,6 +219,10 @@ namespace Xamarin.Forms return _platformConfigurationRegistry.Value.On<T>(); } + void ITextElement.OnTextColorPropertyChanged(Color oldValue, Color newValue) + { + } + internal class LockableObservableListWrapper : IList<string>, ICollection<string>, INotifyCollectionChanged, INotifyPropertyChanged, IReadOnlyList<string>, IReadOnlyCollection<string>, IEnumerable<string>, IEnumerable { internal readonly ObservableCollection<string> _list = new ObservableCollection<string>(); |