private void DetailClose(object sender, RoutedEventArgs e)
 {
     HideDetail.Begin();
     DetailStackPanelTranslateY.TranslateY = 0;
     SwipeTextPanel.Visibility             = Visibility.Collapsed;
     Detail.DataContext = null;
 }
示例#2
0
        // теги меню

        // теги действия
        private void HidePanels()
        {
            if (Detail.DataContext != null)
            {
                HideDetail.Begin();
                Detail.DataContext = null;
            }

            if (Search.Visibility == Visibility.Visible)
            {
                HideSearch.Begin();
            }
        }
示例#3
0
 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();
     }
 }
示例#5
0
 // перезагрузить
 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();
 }