public void ShowDialog(UploadItemsPreviewWindowViewModel viewModel) { var window = new UploadItemsPreviewWindow(viewModel); window.Owner = App.Current.MainWindow; window.ShowDialog(); }
public UploadItemsPreviewWindow(UploadItemsPreviewWindowViewModel viewModel) { this.DataContext = viewModel; viewModel.CloseEvent += (sender, e) => this.Close(); InitializeComponent(); }
public UploadItemsPreviewWindow(UploadItemsPreviewWindowViewModel viewModel) { this.DataContext = viewModel; viewModel.CloseEvent += (sender, e) => this.Close(); InitializeComponent(); this.MouseLeftButtonDown += (sender, e) => this.DragMove(); }