summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core/TextElement.cs
blob: d64024a684669ca33ce5afea561246d49141176f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
namespace Xamarin.Forms
{
	static class TextElement
	{
		public static readonly BindableProperty TextColorProperty =
			BindableProperty.Create("TextColor", typeof(Color), typeof(Button), Color.Default,
									propertyChanged: OnTextColorPropertyChanged);

		static void OnTextColorPropertyChanged(BindableObject bindable, object oldValue, object newValue)
		{
			((ITextElement)bindable).OnTextColorPropertyChanged((Color)oldValue, (Color)newValue);
		}
	}
}