public DataDashBoardSettingVisual(DataDashBoardSettingsViewModel ViewModel, DataDashBoardVisual View) { InitializeComponent(); this.DataContext = ViewModel; this._view = View; this._viewModel = ViewModel; this.txtXml.Text = _viewModel._ViewerModel.Parameters.XML; }
public void ShowSettings() { DataDashBoardSettingsViewModel settingsViewModel = new DataDashBoardSettingsViewModel(this.ViewModel, this.GenericWindow); DataDashBoardSettingVisual window = new DataDashBoardSettingVisual(settingsViewModel, this.GenericWindow); window.Owner = Application.Current.MainWindow; window.WindowStartupLocation = WindowStartupLocation.CenterOwner; window.ShowDialog(); }