diff --git a/VirtualListView/Platforms/Windows/IrElementContainer.cs b/VirtualListView/Platforms/Windows/IrElementContainer.cs index d87d7b3..b0192fa 100644 --- a/VirtualListView/Platforms/Windows/IrElementContainer.cs +++ b/VirtualListView/Platforms/Windows/IrElementContainer.cs @@ -80,6 +80,10 @@ protected override void OnTapped(TappedRoutedEventArgs e) { base.OnTapped(e); + // Don't select non-item positions + if ((PositionInfo?.Kind ?? PositionKind.Header) != PositionKind.Item) + return; + if (PositionInfo != null) PositionInfo.IsSelected = !PositionInfo.IsSelected;