Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GirdView / ScrollViewer without zoom in WinRT

I'm using in my C# app a ScrollViewer and in this a GridView. Not it is possible to zoom in and out, but in my case I don't need this functionaliy. How can I disable zoom in and out?

Here is little examle:

<ScrollViewer VerticalScrollMode="Disabled" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled" Grid.Row="1">
    <GridView x:Name="Cards" Margin="4,0,0,0" ItemsSource="{Binding EmergencyCards}" ItemTemplate="{StaticResource EmergencyCardTemplate}"/>
</ScrollViewer>

Thanks a lot!

like image 393
Thomas Sebastian Jensen Avatar asked Mar 10 '26 02:03

Thomas Sebastian Jensen


1 Answers

Set ZoomMode="Disabled" in the ScrollViewer tag. -

<ScrollViewer ZoomMode="Disabled"/>
like image 74
Superman Avatar answered Mar 11 '26 15:03

Superman