Created
August 22, 2012 17:00
-
-
Save timheuer/3427491 to your computer and use it in GitHub Desktop.
Changing to ensure we don't try this in snapped
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/Callisto/Controls/Settings/SettingsFlyout.cs b/src/Callisto/Controls/Settings/SettingsFlyout.cs | |
index 2846ea5..eebed12 100644 | |
--- a/src/Callisto/Controls/Settings/SettingsFlyout.cs | |
+++ b/src/Callisto/Controls/Settings/SettingsFlyout.cs | |
@@ -5,6 +5,7 @@ | |
using Windows.Foundation; | |
using Windows.UI; | |
using Windows.UI.ApplicationSettings; | |
+using Windows.UI.ViewManagement; | |
using Windows.UI.Xaml; | |
using Windows.UI.Xaml.Controls; | |
using Windows.UI.Xaml.Controls.Primitives; | |
@@ -106,11 +107,19 @@ private void OnLoaded(object sender, RoutedEventArgs e) | |
private void OnBackButtonTapped(object sender, object e) | |
{ | |
+ // BUG #47: need to map back button to custom and ability to disable | |
+ | |
if (_hostPopup != null) | |
{ | |
_hostPopup.IsOpen = false; | |
} | |
- SettingsPane.Show(); | |
+ | |
+ // TEMP: wrapping this to ensure back button doesn't happen in snap/portrait | |
+ if (ApplicationView.Value != ApplicationViewState.Snapped) | |
+ { | |
+ SettingsPane.Show(); | |
+ } | |
+ | |
} | |
void OnHostPopupClosed(object sender, object e) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment