private void DataGrid_OnDoubleClickRow(object _sender, MouseButtonEventArgs _e) { DataGridRow row = _sender as DataGridRow; Debug.Assert(row != null); RenameResult renameResult = row.DataContext as RenameResult; Debug.Assert(renameResult != null); string fullName = renameResult.ProposedFile; Debug.Assert(!string.IsNullOrWhiteSpace(fullName)); OpenInExplorer.Open(fullName); }
private void DataGrid_OnDoubleClickRow(object _sender, MouseButtonEventArgs _e) { DataGridRow row = _sender as DataGridRow; Debug.Assert(row != null); FileInfo fileInfo = row.DataContext as FileInfo; Debug.Assert(fileInfo != null); string fullName = fileInfo.FullName; Debug.Assert(!string.IsNullOrWhiteSpace(fullName)); OpenInExplorer.Open(fullName); }