protected override void WindowOpening() { this.suppressInputContext = ClientInputContext .Start("Window noise - intercept all other input") .HandleAll(ClientInputManager.ConsumeAllButtons); this.DataContext = this.viewModel = new ViewModelWindowEditorNoiseComposer(); }
protected override void WindowClosing() { this.suppressInputContext.Stop(); this.suppressInputContext = null; this.DataContext = null; this.viewModel.Dispose(); this.viewModel = null; }