summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/SliderRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/SliderRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/SliderRenderer.cs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/SliderRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/SliderRenderer.cs
index cf20ff9..db72583 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/SliderRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/SliderRenderer.cs
@@ -6,11 +6,12 @@ namespace Xamarin.Forms.Platform.Tizen
{
public class SliderRenderer : ViewRenderer<Slider, ESlider>
{
- static SliderRenderer()
+
+ public SliderRenderer()
{
- RegisterPropertyHandler(Slider.ValueProperty, (r) => (r as SliderRenderer).UpdateValue());
- RegisterPropertyHandler(Slider.MinimumProperty, (r) => (r as SliderRenderer).UpdateMinimum());
- RegisterPropertyHandler(Slider.MaximumProperty, (r) => (r as SliderRenderer).UpdateMaximum());
+ RegisterPropertyHandler(Slider.ValueProperty, UpdateValue);
+ RegisterPropertyHandler(Slider.MinimumProperty, UpdateMinimum);
+ RegisterPropertyHandler(Slider.MaximumProperty, UpdateMaximum);
}
protected override void OnElementChanged(ElementChangedEventArgs<Slider> e)