private void HyperlinkButton_Click(object sender, RoutedEventArgs e) { if (DataGrid.SelectedItem != null) { facade.GetMailContent((DataGrid.SelectedItem as dynamic).SysNo, viewModel.Source, callback); } }