summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs
index 4de9604..0125cfe 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/ButtonRenderer.cs
@@ -6,14 +6,14 @@ namespace Xamarin.Forms.Platform.Tizen
{
public class ButtonRenderer : ViewRenderer<Button, Native.Button>
{
- static ButtonRenderer()
+ public ButtonRenderer()
{
- RegisterPropertyHandler(Button.TextProperty, (r) => (r as ButtonRenderer).UpdateText());
- RegisterPropertyHandler(Button.FontFamilyProperty, (r) => (r as ButtonRenderer).UpdateFontFamily());
- RegisterPropertyHandler(Button.FontSizeProperty, (r) => (r as ButtonRenderer).UpdateFontSize());
- RegisterPropertyHandler(Button.FontAttributesProperty, (r) => (r as ButtonRenderer).UpdateFontAttributes());
- RegisterPropertyHandler(Button.TextColorProperty, (r) => (r as ButtonRenderer).UpdateTextColor());
- RegisterPropertyHandler(Button.ImageProperty, (r) => (r as ButtonRenderer).UpdateBitmap());
+ RegisterPropertyHandler(Button.TextProperty, UpdateText);
+ RegisterPropertyHandler(Button.FontFamilyProperty, UpdateFontFamily);
+ RegisterPropertyHandler(Button.FontSizeProperty, UpdateFontSize);
+ RegisterPropertyHandler(Button.FontAttributesProperty, UpdateFontAttributes);
+ RegisterPropertyHandler(Button.TextColorProperty, UpdateTextColor);
+ RegisterPropertyHandler(Button.ImageProperty, UpdateBitmap);
RegisterPropertyHandler(Button.BorderColorProperty, UpdateBorder);
RegisterPropertyHandler(Button.BorderRadiusProperty, UpdateBorder);
RegisterPropertyHandler(Button.BorderWidthProperty, UpdateBorder);
@@ -102,7 +102,7 @@ namespace Xamarin.Forms.Platform.Tizen
}
}
- static void UpdateBorder(VisualElementRenderer<Button> r)
+ void UpdateBorder()
{
/* The simpler way is to create some specialized theme for button in
* tizen-theme