1

マウスの左クリックでグリッドビューで複数のアイテムを選択しようとしています。右クリックでやりました。また、以下のように左クリックでアイテムを単一選択しました

   if (this.UsingLogicalPageNavigation()) this.InvalidateVisualState();
        this.itemsViewSource.View.MoveCurrentTo(e.ClickedItem);

左クリックでGridViewのアイテムを複数選択するにはどうすればよいですか?

4

1 に答える 1

0

Since you want to use the left button to select the items, I assume you don't want Item Click behaviour? In that case, use the following...

<GridView
        ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
        ItemTemplate="{StaticResource Standard250x250ItemTemplate}"
        SelectionMode="Multiple"
        IsSwipeEnabled="false"
        IsItemClickEnabled="False" />

If you want to allow the item click behaviour, you would set IsItemClickEnabled = true; and use the built-in swipe selection mechanism for selecting items.

<GridView
        ItemsSource="{Binding Source={StaticResource groupedItemsViewSource}}"
        ItemTemplate="{StaticResource Standard250x250ItemTemplate}"
        SelectionMode="Multiple"
        IsSwipeEnabled="true"
        IsItemClickEnabled="true"
        ItemClick="ItemView_ItemClick">
于 2013-01-07T11:11:55.097 に答える