public ErrorDialog() { InitializeComponent(); viewModel = new ErrorDialogVM(); DataContext = viewModel; }