summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/StepperRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/StepperRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/StepperRenderer.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/StepperRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/StepperRenderer.cs
index 40133d7..a1cf311 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/StepperRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/StepperRenderer.cs
@@ -5,12 +5,13 @@ namespace Xamarin.Forms.Platform.Tizen
{
public class StepperRenderer : ViewRenderer<Stepper, Spinner>
{
- static StepperRenderer()
+
+ public StepperRenderer()
{
- RegisterPropertyHandler(Stepper.ValueProperty, (r) => (r as StepperRenderer).UpdateValue());
- RegisterPropertyHandler(Stepper.MinimumProperty, (r) => (r as StepperRenderer).UpdateMinimum());
- RegisterPropertyHandler(Stepper.MaximumProperty, (r) => (r as StepperRenderer).UpdateMaximum());
- RegisterPropertyHandler(Stepper.IncrementProperty, (r) => (r as StepperRenderer).UpdateStep());
+ RegisterPropertyHandler(Stepper.ValueProperty, UpdateValue);
+ RegisterPropertyHandler(Stepper.MinimumProperty, UpdateMinimum);
+ RegisterPropertyHandler(Stepper.MaximumProperty, UpdateMaximum);
+ RegisterPropertyHandler(Stepper.IncrementProperty, UpdateStep);
}
protected override void OnElementChanged(ElementChangedEventArgs<Stepper> e)