Skip to content

Commit

Permalink
Windows, don't allow selection of non-items
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth committed Jul 26, 2023
1 parent 92409fd commit 97be055
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions VirtualListView/Platforms/Windows/IrElementContainer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 97be055

Please sign in to comment.