public BlotterViewSettingVisual(BlotterViewSettingsViewModel ViewModel, BlotterViewVisual View) { InitializeComponent(); this.DataContext = ViewModel; this._view = View; this._viewModel = ViewModel; }
public void ShowSettings() { BlotterViewSettingsViewModel settingsViewModel = new BlotterViewSettingsViewModel(this.ViewModel, this.GenericWindow); BlotterViewSettingVisual window = new BlotterViewSettingVisual(settingsViewModel, this.GenericWindow); window.Owner = Application.Current.MainWindow; window.WindowStartupLocation = WindowStartupLocation.CenterOwner; window.ShowDialog(); }