Пример #1
0
        protected override void WindowOpening()
        {
            this.suppressInputContext = ClientInputContext
                                        .Start("Window noise - intercept all other input")
                                        .HandleAll(ClientInputManager.ConsumeAllButtons);

            this.DataContext = this.viewModel = new ViewModelWindowEditorNoiseComposer();
        }
Пример #2
0
        protected override void WindowClosing()
        {
            this.suppressInputContext.Stop();
            this.suppressInputContext = null;

            this.DataContext = null;
            this.viewModel.Dispose();
            this.viewModel = null;
        }