Fix FloatingButton Show/Hide issue 92/125592/1
authorsung-su.kim <sung-su.kim@samsung.com>
Tue, 18 Apr 2017 05:23:01 +0000 (14:23 +0900)
committersung-su.kim <sung-su.kim@samsung.com>
Tue, 18 Apr 2017 05:23:01 +0000 (14:23 +0900)
Change-Id: I38bfa8a8bdea5ce3e87bdeadf18c55b20e1cf2e8

Tizen.Xamarin.Forms.Extension.Renderer/FloatingButtonImplementation.cs

index 3afc73e..949f7fc 100644 (file)
@@ -93,14 +93,22 @@ namespace Tizen.Xamarin.Forms.Extension
 
         public void Show()
         {
-            _isShown = true;
-            _control.Show();
+            if (_isShown == false)
+            {
+                _isShown = true;
+                TForms.Context.MainWindow.BaseLayout.SetPartContent("elm.swallow.floatingbutton", _control, true);
+                _control.Show();
+            }
         }
 
         public void Hide()
         {
-            _isShown = false;
-            _control.Hide();
+            if (_isShown)
+            {
+                _isShown = false;
+                TForms.Context.MainWindow.BaseLayout.SetPartContent("elm.swallow.floatingbutton", null, true);
+                _control.Hide();
+            }
         }
 
         public void Dispose()