Destroy the drawer along with the MasterDetailPage
authorPawel Andruszkiewicz <p.andruszkie@samsung.com>
Thu, 23 Mar 2017 07:23:03 +0000 (08:23 +0100)
committerKangho Hur <kangho.hur@samsung.com>
Mon, 24 Apr 2017 04:39:46 +0000 (13:39 +0900)
Change-Id: I87f3b8bdb5baed77bef7947fc73469ad215f47a5
Signed-off-by: Pawel Andruszkiewicz <p.andruszkie@samsung.com>
Xamarin.Forms.Platform.Tizen/Native/MasterDetailPage.cs

index 1a10b70..e7e1f24 100755 (executable)
@@ -254,6 +254,16 @@ namespace Xamarin.Forms.Platform.Tizen.Native
                }
 
                /// <summary>
+               /// Provides destruction for native element and contained elements.
+               /// </summary>
+               protected override void OnUnrealize()
+               {
+                       _drawer.Unrealize();
+
+                       base.OnUnrealize();
+               }
+
+               /// <summary>
                /// Updates the geometry of the selected page.
                /// </summary>
                /// <param name="page">Master or Detail page to be updated.</param>