<Window x:Class="CommunicationSampleApp.CollaborationWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:CommunicationSampleApp"
        xmlns:csdk="clr-namespace:Avaya.ClientServices;assembly=AvayaClientServices"
        mc:Ignorable="d"
        Title="CollaborationWindow" Height="480" Width="640"  Closing="CollaborationWindow_Closing" WindowStyle="SingleBorderWindow">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="32px"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <DockPanel>
            <DockPanel.Resources>
                <Style TargetType="{x:Type Slider}">
                    <Setter Property="Margin" Value="5,6,5,6"/>
                </Style>
            </DockPanel.Resources>
            <Slider Name="scaleSlider" Value="1.0" Minimum="0.1" Maximum="5.0" />
        </DockPanel>
        <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
            <csdk:ContentSharingCanvas Background="LightGray" x:Name="SharingCanvas" Focusable="True"
                                       HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                       ScrollViewer.CanContentScroll="True">
            <FrameworkElement.LayoutTransform>
                <ScaleTransform ScaleX="{Binding ElementName=scaleSlider,Path=Value}" ScaleY="{Binding ElementName=scaleSlider,Path=Value}" />
            </FrameworkElement.LayoutTransform>
        </csdk:ContentSharingCanvas>
        </ScrollViewer>

    </Grid>
</Window>
