summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs
index f8a1045..39e018c 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/EditorRenderer.cs
@@ -6,14 +6,14 @@ namespace Xamarin.Forms.Platform.Tizen
{
public class EditorRenderer : ViewRenderer<Editor, Native.Entry>
{
- static EditorRenderer()
+ public EditorRenderer()
{
- RegisterPropertyHandler(Editor.TextProperty, (r) => (r as EditorRenderer).UpdateText());
- RegisterPropertyHandler(Editor.TextColorProperty, (r) => (r as EditorRenderer).UpdateTextColor());
- RegisterPropertyHandler(Editor.FontSizeProperty, (r) => (r as EditorRenderer).UpdateFontSize());
- RegisterPropertyHandler(Editor.FontFamilyProperty, (r) => (r as EditorRenderer).UpdateFontFamily());
- RegisterPropertyHandler(Editor.FontAttributesProperty, (r) => (r as EditorRenderer).UpdateFontAttributes());
- RegisterPropertyHandler(Editor.KeyboardProperty, (r, i) => (r as EditorRenderer).UpdateKeyboard(i));
+ RegisterPropertyHandler(Editor.TextProperty, UpdateText);
+ RegisterPropertyHandler(Editor.TextColorProperty, UpdateTextColor);
+ RegisterPropertyHandler(Editor.FontSizeProperty, UpdateFontSize);
+ RegisterPropertyHandler(Editor.FontFamilyProperty, UpdateFontFamily);
+ RegisterPropertyHandler(Editor.FontAttributesProperty, UpdateFontAttributes);
+ RegisterPropertyHandler(Editor.KeyboardProperty, UpdateKeyboard);
}
protected override void OnElementChanged(ElementChangedEventArgs<Editor> e)
@@ -93,4 +93,4 @@ namespace Xamarin.Forms.Platform.Tizen
Control.Keyboard = Element.Keyboard.ToNative();
}
}
-}
+} \ No newline at end of file