Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 444

Answer by Liyun Zhang - MSFT for Scaling ListView Items at Runtime .NET MAUI

$
0
0

You can try to add the TapGestureRecognizer for the Grid:

<DataTemplate x:Key="LessonButton"><ViewCell><Grid Scale="1"><Grid.GestureRecognizers><TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/></Grid.GestureRecognizers>

And in the code behind:

private async void TapGestureRecognizer_Tapped(object sender, TappedEventArgs e) {    await (sender as Grid).ScaleTo(1.5);    await (sender as Grid).ScaleTo(1.0); }

Viewing all articles
Browse latest Browse all 444

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>