0

In my application, I have an image control with a scrollbar. so I want to zoom in and zoom out the image on (Plus, Minus) button click.

 <ScrollViewer Name="scrollViewerimage" 

          VerticalScrollBarVisibility="Visible" 

          HorizontalScrollBarVisibility="Visible" Margin="42,10,19,259" Grid.Row="2" ViewChanged="ScrollViewerimage_ViewChanged" SizeChanged="ScrollViewerimage_SizeChanged">
        <Image       x:Name="DisplayImage"   Stretch="None"
              Margin="0,0,0,0"   Width="647"
                                HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="0" Height="585" Grid.Row="1" >

        </Image>
    </ScrollViewer>

Any help would be highly appreciated.

enter image description here

  • guys any idea how to zoom in and zoom out on button click. :( –  Apr 23 '19 at 07:10
  • 1
    thanks for your valuable reply . i am developing desktop UWP application :( –  Apr 23 '19 at 09:13
  • 1
    Here is link for refernce.(https://stackoverflow.com/questions/37380661/uwp-zooming-image-with-pinch-zoom-and-double-tap-with-flip-view) – Junior Jiang Apr 24 '19 at 04:30

0 Answers0