private void DetailClose(object sender, RoutedEventArgs e) { HideDetail.Begin(); DetailStackPanelTranslateY.TranslateY = 0; SwipeTextPanel.Visibility = Visibility.Collapsed; Detail.DataContext = null; }
// теги меню // теги действия private void HidePanels() { if (Detail.DataContext != null) { HideDetail.Begin(); Detail.DataContext = null; } if (Search.Visibility == Visibility.Visible) { HideSearch.Begin(); } }
private void LeftToRightEndCompleted(object sender, object e) { if (somethingWrong) { HideDetail.Begin(); Detail.DataContext = null; somethingWrong = false; } else { SwipeTextPanel.Height = DetailScrollViewer.ActualHeight; SwipeTextPanel.Visibility = Visibility.Visible; } }
private void backBtn_Click(object sender, RoutedEventArgs e) { if (stackPanel.Opacity == 1) { HideDetail.Begin(); genTxt = pMenu.Name; genImg = pMenu.Background; generalHide.Begin(); } if (stackPanel.Opacity == 0) { Frame.GoBack(); } }
// перезагрузить private void Reload(object sender, RoutedEventArgs e) { HideDetail.Completed += HideDetailReload; HideDetail.Begin(); Detail.DataContext = null; }
private void backBtn_Click(object sender, RoutedEventArgs e) { HideDetail.Begin(); generalHide.Begin(); }