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