Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

xct:TouchEffect.LongPressCommand on CollectionView not working on CollectionItem? #1554

Answered by gaurakshay
klingu asked this question in Q&A
Discussion options

You must be logged in to vote

This is how I implemented TouchEffect in my View with binding commands to my associated ViewModel.

<CollectionView
    Grid.Row="2"
    ItemsSource="{Binding <CollectionSource>}"
    SelectionMode="None">
    <CollectionView.ItemTemplate>
        <DataTemplate x:DataType="<namespace:DataType>">
            <Grid
                xct:TouchEffect.Command="{Binding Source={RelativeSource AncestorType={x:Type <namespace:ViewModel>}}, Path=<CommandName>}"
                xct:TouchEffect.CommandParameter="{Binding Source={RelativeSource Self}, Path=BindingContext}"
                RowDefinitions="Auto">
                <Label
                    Text="{Binding <Property>}"
                    Te…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@klingu
Comment options

Answer selected by klingu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants