public MainWindow() { resizeImages.Dispatcher = this.Dispatcher; resizeImages.OnQueueComplete += ResizeImages_OnQueueComplete; resizeImages.OnRunComplete += ResizeImages_OnRunComplete; resizeWindowViewModel = new ResizeWindowViewModel(); this.DataContext = resizeWindowViewModel; InitializeComponent(); }
public ResizeWindowUserControl() { InitializeComponent(); DataContext = new ResizeWindowViewModel(); }