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