ImageViewPage.xaml 1.0 KB

123456789101112131415161718192021222324252627
  1. <Page
  2. x:Class="Breda_Tour.MapScreen.ImageViewPage"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:local="using:Breda_Tour.MapScreen"
  6. xmlns:c="using:Breda_Tour.CustomControls"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:Maps ="using:Windows.UI.Xaml.Controls.Maps"
  10. xmlns:customControls="using:Breda_Tour.CustomControls"
  11. mc:Ignorable="d"
  12. x:Name="ImageViewer"
  13. >
  14. <Grid>
  15. <ScrollViewer ZoomMode="Enabled"
  16. MinZoomFactor="1"
  17. MaxZoomFactor="4"
  18. HorizontalScrollBarVisibility="Hidden"
  19. VerticalScrollBarVisibility="Hidden"
  20. >
  21. <Image Name="Image"
  22. MaxWidth="{Binding DataContext.PageWidth, ElementName=ImageViewer}"
  23. MaxHeight="{Binding DataContext.PageHeight, ElementName=ImageViewer}"/>
  24. </ScrollViewer>
  25. </Grid>
  26. </Page>