summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs19
1 files changed, 10 insertions, 9 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs
index 16c36ec..42e8a15 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/LabelRenderer.cs
@@ -7,19 +7,20 @@ namespace Xamarin.Forms.Platform.Tizen
public class LabelRenderer : ViewRenderer<Label, Native.Label>
{
- static LabelRenderer()
+
+ public LabelRenderer()
{
- RegisterPropertyHandler(Label.TextProperty, (r) => (r as LabelRenderer).UpdateText());
- RegisterPropertyHandler(Label.TextColorProperty, (r) => (r as LabelRenderer).UpdateTextColor());
+ RegisterPropertyHandler(Label.TextProperty, UpdateText);
+ RegisterPropertyHandler(Label.TextColorProperty, UpdateTextColor);
// FontProperty change is called also for FontSizeProperty, FontFamilyProperty and FontAttributesProperty change
- RegisterPropertyHandler(Label.FontProperty, (r) => (r as LabelRenderer).UpdateFontProperties());
- RegisterPropertyHandler(Label.LineBreakModeProperty, (r) => (r as LabelRenderer).UpdateLineBreakMode());
- RegisterPropertyHandler(Label.HorizontalTextAlignmentProperty, (r) => (r as LabelRenderer).UpdateHorizontalTextAlignment());
- RegisterPropertyHandler(Label.VerticalTextAlignmentProperty, (r) => (r as LabelRenderer).UpdateVerticalTextAlignment());
- RegisterPropertyHandler(Label.FormattedTextProperty, (r) => (r as LabelRenderer).UpdateFormattedText());
+ RegisterPropertyHandler(Label.FontProperty, UpdateFontProperties);
+ RegisterPropertyHandler(Label.LineBreakModeProperty, UpdateLineBreakMode);
+ RegisterPropertyHandler(Label.HorizontalTextAlignmentProperty, UpdateHorizontalTextAlignment);
+ RegisterPropertyHandler(Label.VerticalTextAlignmentProperty, UpdateVerticalTextAlignment);
+ RegisterPropertyHandler(Label.FormattedTextProperty, UpdateFormattedText);
if (TizenPlatformServices.AppDomain.IsTizenSpecificAvailable)
{
- RegisterPropertyHandler("FontWeight", (r) => (r as LabelRenderer).UpdateFontWeight());
+ RegisterPropertyHandler("FontWeight", UpdateFontWeight);
}
}