﻿<UserControl
    x:Class="Lumia.ViewerPlugin.Surface.ZoomPan.ZoomPanControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:Lumia.ViewerPlugin.Surface.ZoomPan"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400" 
    Background="{ThemeResource BackgroundBrush}"
    FlowDirection="LeftToRight">
    <!--TODO Change the background above to use some standard theme resource when Photos app has been updated to support Themes-->
    <!--This will probably not happen until post RTM-->

    <Grid>
        <SwapChainPanel x:ConnectionId='1' x:Name="Panel" Width="0" Height="0"/>
        <ScrollViewer x:ConnectionId='2' x:Name="InteractionTarget"
                                                                   
                                                                 
                      HorizontalScrollMode="Enabled"
                      IsHorizontalRailEnabled="False"
                      HorizontalScrollBarVisibility="Hidden"
                      VerticalScrollMode="Enabled"
                      VerticalScrollBarVisibility="Hidden"
                      IsVerticalRailEnabled="False"
                      ZoomMode="Disabled"
                      MinZoomFactor="1"
                      MaxZoomFactor="2">
                <Rectangle x:ConnectionId='3' x:Name="ContentDummy" />
        </ScrollViewer>
    </Grid>
</UserControl>

