private void CommandBinding_Executed_ViewDetail(object sender, ExecutedRoutedEventArgs e) { ManagementViewModel vm = DataContext as ManagementViewModel; ExchangeRateWaterInformation selectedRateWaterInfo = (e.OriginalSource as DataGridRow).DataContext as ExchangeRateWaterInformation; vm.ShowRateWaterInfo(selectedRateWaterInfo); }
private void DataGridRow_MouseDoubleClick(object sender, MouseEventArgs e) { ManagementViewModel vm = DataContext as ManagementViewModel; ExchangeRateWaterInformation selectedRateWaterInfo = (e.Source as DataGridRow).DataContext as ExchangeRateWaterInformation; vm.ShowRateWaterInfo(selectedRateWaterInfo); }