public ConfirmDialog() { InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterScreen; DialogContent = new ConfirmDialogView() { DataContext = this }; }
public override void PerformOperation() { try { _dialogView = new ConfirmDialogView(ViewModel); _dialogView.ShowDialog(); } finally { _dialogView = null; } }