<Page
    x:Class="Breda_Tour.MapScreen.ImageViewPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Breda_Tour.MapScreen"
    xmlns:c="using:Breda_Tour.CustomControls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:Maps ="using:Windows.UI.Xaml.Controls.Maps"
    xmlns:customControls="using:Breda_Tour.CustomControls"
    mc:Ignorable="d"
    x:Name="ImageViewer" 
    >

    <Grid>
        <ScrollViewer ZoomMode="Enabled"  
              MinZoomFactor="1" 
              MaxZoomFactor="4"
              HorizontalScrollBarVisibility="Hidden"
              VerticalScrollBarVisibility="Hidden"
              >
            <Image Name="Image"  
            MaxWidth="{Binding DataContext.PageWidth, ElementName=ImageViewer}"
            MaxHeight="{Binding DataContext.PageHeight, ElementName=ImageViewer}"/>
        </ScrollViewer>
    </Grid>
</Page>