summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungHyun Min <shyun.min@samsung.com>2017-03-21 04:08:22 (GMT)
committerSungHyun Min <shyun.min@samsung.com>2017-03-21 04:10:07 (GMT)
commit00f4ce2a48cce2752357bfa8e2047314a479a3b1 (patch)
treed31ded2334f7d8ebc14e241bdfc7e9a155c76820
parent665e99968a805011b9861e0a0036e2da81bab1c1 (diff)
downloadxamarin-forms-00f4ce2a48cce2752357bfa8e2047314a479a3b1.zip
xamarin-forms-00f4ce2a48cce2752357bfa8e2047314a479a3b1.tar.gz
xamarin-forms-00f4ce2a48cce2752357bfa8e2047314a479a3b1.tar.bz2
Change-Id: I458f07493e12a2ce534aac8318051914dfe0db1b Signed-off-by: SungHyun Min <shyun.min@samsung.com>
-rw-r--r--Xamarin.Forms.Platform.Tizen/GestureHandler.cs6
-rw-r--r--Xamarin.Forms.Platform.Tizen/PanGestureHandler.cs2
-rw-r--r--Xamarin.Forms.Platform.Tizen/PinchGestureHandler.cs2
-rw-r--r--Xamarin.Forms.Platform.Tizen/TapGestureHandler.cs8
4 files changed, 6 insertions, 12 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/GestureHandler.cs b/Xamarin.Forms.Platform.Tizen/GestureHandler.cs
index 0d1bb93..d89bea5 100644
--- a/Xamarin.Forms.Platform.Tizen/GestureHandler.cs
+++ b/Xamarin.Forms.Platform.Tizen/GestureHandler.cs
@@ -15,6 +15,7 @@ namespace Xamarin.Forms.Platform.Tizen
protected GestureHandler(IGestureRecognizer recognizer)
{
Recognizer = recognizer;
+ Recognizer.PropertyChanged += OnRecognizerPropertyChanged;
}
public virtual event PropertyChangedEventHandler PropertyChanged;
@@ -46,5 +47,10 @@ namespace Xamarin.Forms.Platform.Tizen
{
OnCanceled(sender, data);
}
+
+ protected virtual void OnRecognizerPropertyChanged(object sender, PropertyChangedEventArgs e)
+ {
+ PropertyChanged?.Invoke(this, e);
+ }
}
} \ No newline at end of file
diff --git a/Xamarin.Forms.Platform.Tizen/PanGestureHandler.cs b/Xamarin.Forms.Platform.Tizen/PanGestureHandler.cs
index ec1e6de..0296da0 100644
--- a/Xamarin.Forms.Platform.Tizen/PanGestureHandler.cs
+++ b/Xamarin.Forms.Platform.Tizen/PanGestureHandler.cs
@@ -20,8 +20,6 @@ namespace Xamarin.Forms.Platform.Tizen
}
}
- public override event PropertyChangedEventHandler PropertyChanged;
-
protected override void OnStarted(View sender, object data)
{
_currentPanGestureId++;
diff --git a/Xamarin.Forms.Platform.Tizen/PinchGestureHandler.cs b/Xamarin.Forms.Platform.Tizen/PinchGestureHandler.cs
index c22b7e2..abb4f7b 100644
--- a/Xamarin.Forms.Platform.Tizen/PinchGestureHandler.cs
+++ b/Xamarin.Forms.Platform.Tizen/PinchGestureHandler.cs
@@ -22,8 +22,6 @@ namespace Xamarin.Forms.Platform.Tizen
}
}
- public override event PropertyChangedEventHandler PropertyChanged;
-
protected override void OnStarted(View sender, object data)
{
var geometry = Platform.GetRenderer(sender).NativeView.Geometry;
diff --git a/Xamarin.Forms.Platform.Tizen/TapGestureHandler.cs b/Xamarin.Forms.Platform.Tizen/TapGestureHandler.cs
index f8e0907..b57fe79 100644
--- a/Xamarin.Forms.Platform.Tizen/TapGestureHandler.cs
+++ b/Xamarin.Forms.Platform.Tizen/TapGestureHandler.cs
@@ -8,7 +8,6 @@ namespace Xamarin.Forms.Platform.Tizen
{
public TapGestureHandler(IGestureRecognizer recognizer) : base(recognizer)
{
- recognizer.PropertyChanged += OnRecognizerPropertyChanged;
}
public override GestureLayer.GestureType Type
@@ -29,8 +28,6 @@ namespace Xamarin.Forms.Platform.Tizen
}
}
- public override event PropertyChangedEventHandler PropertyChanged;
-
protected override void OnStarted(View sender, object data)
{
}
@@ -47,10 +44,5 @@ namespace Xamarin.Forms.Platform.Tizen
protected override void OnCanceled(View sender, object data)
{
}
-
- void OnRecognizerPropertyChanged(object sender, PropertyChangedEventArgs e)
- {
- PropertyChanged?.Invoke(this, e);
- }
}
} \ No newline at end of file