summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSungHyun Min <shyun.min@samsung.com>2017-03-21 13:08:22 +0900
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 13:34:30 +0900
commit9b970979d7bf6181782d668ef5507933824eb7b0 (patch)
tree72eda23f21cea16c991f37cb92b6b8f9e594a720
parent6f984381f71f41cc697bd48d492585b7a0b9459e (diff)
downloadxamarin-forms-9b970979d7bf6181782d668ef5507933824eb7b0.tar.gz
xamarin-forms-9b970979d7bf6181782d668ef5507933824eb7b0.tar.bz2
xamarin-forms-9b970979d7bf6181782d668ef5507933824eb7b0.zip
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 0d1bb93d..d89bea55 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 ec1e6de6..0296da02 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 c22b7e20..abb4f7ba 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 f8e09078..b57fe792 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