I've Image placed inside a ScrollViewer.
<ScrollViewer x:Name="imageScroller" Grid.Column="2" Margin="5" HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible">
<Image x:Name="imageViewer" Cursor="Hand" RenderTransformOrigin="0,0" Margin="0">
<Image.LayoutTransform>
<ScaleTransform ScaleX="{Binding Path=Zoom, Converter={StaticResource debugConverter}}" ScaleY="{Binding Path=Zoom, Converter={StaticResource debugConverter}}"/>
</Image.LayoutTransform>
</Image>
</ScrollViewer>
How do I zoom image like "fit-to-width" in document viewers to the size and height of ScrollViewer?