From 5363e6d214087155e3f53e06bbb4b54f2ef48e93 Mon Sep 17 00:00:00 2001 From: Alexandr Pilgun Date: Thu, 3 Nov 2016 23:36:17 +0300 Subject: [PATCH] Hide DismissLayer when Pane closed. --- GestureDemo/SwipeableSplitView.cs | 2 ++ GestureDemo/Themes/Generic.xaml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/GestureDemo/SwipeableSplitView.cs b/GestureDemo/SwipeableSplitView.cs index add5977..abb7c9a 100644 --- a/GestureDemo/SwipeableSplitView.cs +++ b/GestureDemo/SwipeableSplitView.cs @@ -394,11 +394,13 @@ void OnDismissLayerTapped(object sender, TappedRoutedEventArgs e) void OnOpenSwipeablePaneCompleted(object sender, object e) { this.DismissLayer.IsHitTestVisible = true; + this.DismissLayer.Visibility = Visibility.Visible; } void OnCloseSwipeablePaneCompleted(object sender, object e) { this.DismissLayer.IsHitTestVisible = false; + this.DismissLayer.Visibility = Visibility.Collapsed; } #endregion diff --git a/GestureDemo/Themes/Generic.xaml b/GestureDemo/Themes/Generic.xaml index 3cc0bdb..87cb79c 100644 --- a/GestureDemo/Themes/Generic.xaml +++ b/GestureDemo/Themes/Generic.xaml @@ -446,7 +446,7 @@ - +