public AccountManagementControl(AccountDialogViewModel viewModel) { InitializeComponent(); this.viewModel = viewModel; this.DataContext = this.viewModel; this.ContentGrid.Children.Add(this.viewModel.PluginControl); }
public AccountDialog(AccountDialogViewModel viewModel) { _viewModel = viewModel; this.InitializeComponent(); }