简体   繁体   中英

doesn't GridView or Grid have Click Event in C# UWP?

doesn't GridView or Grid have Click Event in C# UWP?

i know it has 'RightTapped'.. but i couldn't find 'Click' Event.

for example,

Click="OnElementClicked"

 <GridView>
    <Grid>
        <Frame x:Name="ElementFrame0" Width="470"
               Height="450" CanDrag="True" AllowDrop="True" Click="OnElementClicked"/>
    </Grid>
    <Grid>
        <Frame x:Name="ElementFrame1" Width="470" 
               Height="450" CanDrag="True" AllowDrop="True" Click="OnElementClicked"/>
    </Grid>
</GridView>

The Grid and GridView (like all UIElemets ) has the Tapped event

You can also use the ItemClick on the GridView if SelectionMode = None and IsItemClickEnabled = true

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM