using Xamarin.Forms.PlatformConfiguration.TizenSpecific; using EColor = ElmSharp.Color; using Specific = Xamarin.Forms.PlatformConfiguration.TizenSpecific.Label; 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, UpdateFormattedText); RegisterPropertyHandler(Specific.FontWeightProperty, UpdateFontWeight); } protected override void OnElementChanged(ElementChangedEventArgs