Interaction logic for DownloadTracker.xaml
Inheritance: System.Windows.Controls.UserControl
Ejemplo n.º 1
0
        void exitScreen_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
        {
            if (exitScreen != null && exitScreen.Visibility != System.Windows.Visibility.Visible)
            {
                MainGrid.Children.Remove(exitScreen);

                if (((ExitScreenVM)exitScreen.DataContext).CarryOnExit)
                {
                    Exit();
                }
                else
                    downloadTracker = null;
            }
        }
Ejemplo n.º 2
0
        private void Tracker_Button_Click(object sender, RoutedEventArgs e)
        {
            downloadTracker = new DownloadTracker(viewModel.DownloadList);
            downloadTracker.IsVisibleChanged += downloadTracker_IsVisibleChanged;

            MainGrid.Children.Add(downloadTracker);
        }
Ejemplo n.º 3
0
 void downloadTracker_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (downloadTracker != null && downloadTracker.Visibility != System.Windows.Visibility.Visible)
     {
         MainGrid.Children.Remove(downloadTracker);
         downloadTracker = null;
     }
 }