Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm using ScrollViewer UWP control to zoom an image, I manage to set ZoomMode="Enabled" to enable the zooming function. But the problem is, it only works by holding Ctrl key and mouse wheel!

Is there any way to just using mouse wheel? Or change the other key?

Thanks,
Phap

What I have tried:

My code:
XML
<ScrollViewer
    ZoomMode="Enabled" 
    HorizontalScrollMode="Enabled" 
    VerticalScrollMode="Enabled" 
    HorizontalScrollBarVisibility="Auto"
    VerticalScrollBarVisibility="Auto">
    <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
        <Image Source="aaa.jpg" />
    </Grid>
</ScrollViewer>
Posted
Comments
[no name] 23-Jun-20 16:25pm    
How else would you scroll?
Duong Dieu Phap 23-Jun-20 22:49pm    
I don't need scrolling, i have ManipulationDelta event to pan the content using mouse. Just want to disable Ctrl for zooming

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900