using EColor = ElmSharp.Color; namespace Xamarin.Forms.Platform.Tizen { public class LabelRenderer : ViewRenderer { static readonly EColor s_defaultBackgroundColor = EColor.Transparent; static readonly EColor s_defaultForegroundColor = EColor.Black; static readonly EColor s_defaultTextColor = s_defaultForegroundColor; public LabelRenderer() { RegisterPropertyHandler(Label.TextProperty, () => Control.Text = Element.Text); RegisterPropertyHandler(Label.TextColorProperty, UpdateTextColor); // FontProperty change is called also for FontSizeProperty, FontFamilyProperty and FontAttributesProperty change RegisterPropertyHandler(Label.FontProperty, UpdateFontProperties); RegisterPropertyHandler(Label.LineBreakModeProperty, UpdateLineBreakMode); RegisterPropertyHandler(Label.HorizontalTextAlignmentProperty, UpdateTextAlignment); RegisterPropertyHandler(Label.VerticalTextAlignmentProperty, UpdateTextAlignment); RegisterPropertyHandler(Label.FormattedTextProperty, () => Control.FormattedText = ConvertFormattedText(Element.FormattedText)); } protected override void OnElementChanged(ElementChangedEventArgs