public void CloseSearchView() { App.ViewModel.InModus = App.ViewModel.ModusBefore; TheSearchControl.CloseSearchControl(); Canvas.SetZIndex(SearchGrid, -11); // prevents Keyboard Popup TheSearchControl.searchBox.IsEnabled = false; TheSearchControl.searchBox.IsEnabled = true; App.ViewModel.SearchResults.Clear(); switch (App.ViewModel.InModus) { case MainViewModel.Modi.AgendaView: agendaViewAppbar(); break; case MainViewModel.Modi.OverView: overviewAppbar(); break; case MainViewModel.Modi.OverViewSdv: SdvAppbar(); break; case MainViewModel.Modi.AgendaViewSdv: SdvAppbar(); break; } }
private void openSearchView() { App.ViewModel.ModusBefore = App.ViewModel.InModus; App.ViewModel.InModus = MainViewModel.Modi.SearchView; Canvas.SetZIndex(SearchGrid, 10); TheSearchControl.OpenSearchControl(); searchViewAppbar(); }