private void Row_PointerPressed(object sender, PointerRoutedEventArgs e) { var hitbox = (FrameworkElement)sender; var item = (FileSystemElement)hitbox.Tag; var point = e.GetCurrentPoint(hitbox); if (point.PointerDevice.PointerDeviceType == PointerDeviceType.Mouse) { if (point.Properties.IsMiddleButtonPressed && item.IsFolder) { RequestedTabOpen?.Invoke(this, item); } } }
private void TableView_RequestedTabOpen(object sender, FileSystemElement e) { RequestedTabOpen?.Invoke(sender, e); }