summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen
diff options
context:
space:
mode:
authorJongHeon Choi <j-h.choi@samsung.com>2016-12-20 17:16:41 +0900
committerJongHeon Choi <j-h.choi@samsung.com>2016-12-21 15:30:50 +0900
commit5e4b7f8cfc9f7fcb8f38142689795aae03021284 (patch)
tree8f812f5188fc552c9998e2707720f388e6bd44ed /Xamarin.Forms.Platform.Tizen
parent82202551185931829d9ea100ed4bef0c3de83b85 (diff)
downloadxamarin-forms-5e4b7f8cfc9f7fcb8f38142689795aae03021284.tar.gz
xamarin-forms-5e4b7f8cfc9f7fcb8f38142689795aae03021284.tar.bz2
xamarin-forms-5e4b7f8cfc9f7fcb8f38142689795aae03021284.zip
Unregister ScrollRequestHandler when the renderer is being destroyed
Change-Id: Iae05a147f16932b27bb08ac3d3bdf016040af5c6
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
-rwxr-xr-xXamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs
index 29f15fbe..a566f24a 100755
--- a/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs
@@ -50,9 +50,9 @@ namespace Xamarin.Forms.Platform.Tizen
protected override void Dispose(bool disposing)
{
- if (null != Control)
+ if (null != Element)
{
- (Control as IScrollViewController).ScrollToRequested -= ScrollRequestHandler;
+ (Element as IScrollViewController).ScrollToRequested -= ScrollRequestHandler;
}
base.Dispose(disposing);