示例#1
0
        private void RenderSettings_Click(object sender, RoutedEventArgs e)
        {
            var windowViewModel = new RenderSettingsWindowViewModel(RenderSettings.Instance);

            windowViewModel.PropertyChanged += (s, e) =>
            {
                windowViewModel.SetValues(RenderSettings.Instance);
                RenderFrameIfNeeded();
            };

            var window = new RenderSettingsWindow(windowViewModel);

            window.Show();
        }