Esempio n. 1
0
        public DownloadView()
        {
            InitializeComponent();
            var model = new DownloadViewModel();

            DataContext = model;
            Closed     += (sender, args) =>
            {
                model.CancelDownload();
            };
        }
Esempio n. 2
0
 public void Execute(object parameter)
 {
     viewModel.CancelDownload();
 }