summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungHyun Min <shyun.min@samsung.com>2017-03-21 04:08:22 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-03-24 04:19:03 (GMT)
commitab59d0f5b8e3e9a3488ed429c5a8f4bb904afbff (patch)
treedb932dab7e3fee61ee3cb9b24a792b256fb5b166
parentb9d538581fc4d06efeb5f80173bf040570c4d43d (diff)
downloadxamarin-forms-ab59d0f5b8e3e9a3488ed429c5a8f4bb904afbff.zip
xamarin-forms-ab59d0f5b8e3e9a3488ed429c5a8f4bb904afbff.tar.gz
xamarin-forms-ab59d0f5b8e3e9a3488ed429c5a8f4bb904afbff.tar.bz2
Fix warning
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