Ejemplo n.º 1
0
 public DriftToolSettingVisual(DriftToolViewerSettingsViewModel ViewModel, DriftToolViewerVisual View)
 {
     InitializeComponent();
     this.DataContext = ViewModel;
     this._view       = View;
     this._viewModel  = ViewModel;
 }
        public void ShowSettings()
        {
            DriftToolViewerSettingsViewModel settingsViewModel = new DriftToolViewerSettingsViewModel(this.ViewModel, this.GenericWindow);
            DriftToolSettingVisual           window            = new DriftToolSettingVisual(settingsViewModel, this.GenericWindow);

            window.Owner = Application.Current.MainWindow;
            window.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            window.ShowDialog();
        }