pinch zoom gesture; rewrite zoomviewer

This commit is contained in:
Paddy Xu
2017-07-22 23:51:39 +03:00
parent e05ef2e969
commit 86dacf6e73
7 changed files with 270 additions and 352 deletions

View File

@@ -5,11 +5,13 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:QuickLook.Plugin.ImageViewer"
mc:Ignorable="d"
x:Name="imagePanel"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<ScrollViewer x:Name="viewPanel" BorderThickness="0" HorizontalScrollBarVisibility="Auto"
VerticalScrollBarVisibility="Auto" Focusable="False">
<Image x:Name="viewPanelImage" Stretch="None" RenderOptions.BitmapScalingMode="HighQuality" />
VerticalScrollBarVisibility="Auto" Focusable="False" IsManipulationEnabled="True">
<Image x:Name="viewPanelImage" Stretch="None" Source="{Binding Source, ElementName=imagePanel}"
RenderOptions.BitmapScalingMode="{Binding RenderMode, ElementName=imagePanel}" />
</ScrollViewer>
</Grid>
</UserControl>