maui-linux/Xamarin.Forms.Core/TextElement.cs

14 строки
467 B
C#

namespace Xamarin.Forms
{
static class TextElement
{
public static readonly BindableProperty TextColorProperty =
BindableProperty.Create("TextColor", typeof(Color), typeof(ITextElement), Color.Default,
propertyChanged: OnTextColorPropertyChanged);
static void OnTextColorPropertyChanged(BindableObject bindable, object oldValue, object newValue)
{
((ITextElement)bindable).OnTextColorPropertyChanged((Color)oldValue, (Color)newValue);
}
}
}