summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/DatePickerRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/DatePickerRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/DatePickerRenderer.cs11
1 files changed, 3 insertions, 8 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/DatePickerRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/DatePickerRenderer.cs
index c4b88e8..39a2529 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/DatePickerRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/DatePickerRenderer.cs
@@ -7,11 +7,11 @@ namespace Xamarin.Forms.Platform.Tizen
//TODO need to add internationalization support
const string DialogTitle = "Choose Date";
- static DatePickerRenderer()
+ public DatePickerRenderer()
{
RegisterPropertyHandler(DatePicker.DateProperty, UpdateDate);
RegisterPropertyHandler(DatePicker.FormatProperty, UpdateDate);
- RegisterPropertyHandler(DatePicker.TextColorProperty, (r) => (r as DatePickerRenderer).UpdateTextColor());
+ RegisterPropertyHandler(DatePicker.TextColorProperty, UpdateTextColor);
}
protected override void OnElementChanged(ElementChangedEventArgs<DatePicker> e)
@@ -75,11 +75,6 @@ namespace Xamarin.Forms.Platform.Tizen
dialog.Dismissed -= OnDialogDismissed;
}
- static void UpdateDate(VisualElementRenderer<DatePicker> renderer)
- {
- (renderer as DatePickerRenderer).UpdateDate();
- }
-
void UpdateDate()
{
Control.Text = Element.Date.ToString(Element.Format);
@@ -90,4 +85,4 @@ namespace Xamarin.Forms.Platform.Tizen
Control.TextColor = Element.TextColor.ToNative();
}
}
-}
+} \ No newline at end of file