private async void filterFlyout_Tapped(object sender, RoutedEventArgs e) // before June 2015 was filterFlyout_Click
 {
     // was: if (App.CurrentVisualState == "vs320Wide") // WAS: if (ApplicationView.Value == ApplicationViewState.Snapped)
     // Workaround for iPopup not seeming to work with non-full-screen modes
     if (App.CurrentVisualState != "FullScreenLandscape" && App.CurrentVisualState != "FullScreenPortrait")
         // equivalent: if(App.CurrentVisualState == "vs320Wide" || App.CurrentVisualState == "vs321To500Wide" || App.CurrentVisualState == "vs501To672Wide" || App.CurrentVisualState == "vs673To1025Wide" || App.CurrentVisualState == "vs1026To1365Wide" || App.CurrentVisualState == "vsOver1365Wide")
     {
         this.Frame.Navigate(typeof(FilterNonFlyout), "pageFilterNonFlyout");
         // may set to true: App.CurrentFilterProfile.AControlChanged
     }
     else
     {
         //Windows.UI.ViewManagement.ApplicationView.TryUnsnap();// Glenn's quick hack, since this doesn't work well while snapped
         // Instead, each click on button creates an instance, but they just pile up until the user unsnaps, then they appear atop each other
         var flyout = new FilterFlyout.Flyout();
         App.CurrentFilterProfile.AControlChanged = await flyout.ShowAsync();
     }
     if (App.CurrentFilterProfile.AControlChanged)
     {
         //GroupOrFlyoutFilterChanged(); // Search is not refreshed until flyout is dismissed.  Simple but maybe not ideal.
         LoadStateEventArgs lsea = new LoadStateEventArgs((Object)App.CurrentSearchQuery, null); // As if navigating anew to this page... to get lists & their counts right
         LoadState(lsea);
         //WAS: LoadState((Object)App.CurrentSearchQuery, null); // As if navigating anew to this page... to get lists & their counts right
         App.CurrentFilterProfile.AControlChanged = false;
         // Persist the change...
         App.FilterProfileList.UpdateOrAdd(App.CurrentFilterProfile);
         await App.FilterProfileList.WriteXML();
     }
 }
 private async void filterFlyout_Click(object sender, RoutedEventArgs e)
 {
     //Windows.UI.ViewManagement.ApplicationView.TryUnsnap();// Glenn's quick hack, since this doesn't work well while snapped
     // Instead, each click on button creates an instance, but they just pile up until the user unsnaps, then they appear atop each other
     var flyout = new FilterFlyout.Flyout();
     await flyout.ShowAsync();
 }
 private void filterFlyout_Click(object sender, RoutedEventArgs e)
 {
     var flyout = new FilterFlyout.Flyout();
     flyout.ShowAsync();
 }