protected override void OnPointerPressed(PointerRoutedEventArgs e) { if (e.OriginalSource is ListViewItemPresenter && !CantSelect()) { _parent.OnPointerPressed(this, e); } else if (e.OriginalSource is Grid grid && string.Equals(grid.Name, "ContentPresenterGrid") && !CantSelect()) { _parent.OnPointerPressed(this, e); } base.OnPointerPressed(e); }
protected override void OnPointerPressed(PointerRoutedEventArgs e) { if (e.OriginalSource is ListViewItemPresenter && !CantSelect()) { _parent.OnPointerPressed(this, e); } base.OnPointerPressed(e); }