Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 54 lines (53 sloc) 3.107 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
<Window x:Class="PTZRemoteLyncOverlay.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="PTZ Local Lync Overlay" Margin="10,10,10,10" Icon="bcc950.ico"
        Height="100" Width="145"
        AllowsTransparency="True" WindowStyle="None" Topmost="True" ShowInTaskbar="True" Background="Transparent"
        MouseDown="MainWindow_MouseDown" Loaded="MainWindow_Loaded" Closing="MainWindow_Closing">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Border x:Name="DragArea" Background="{StaticResource NotQuiteTransparent}" Grid.Row="0" Grid.Column="0" Grid.RowSpan="3" Grid.ColumnSpan="4">
        </Border>
        <Button x:Name="Up" Tag="0,1" Click="MoveClick" Style="{DynamicResource BorderlessButton}" Grid.Row="0" Grid.Column="1" Background="{StaticResource Arrow}" RenderTransformOrigin="0.5,0.5" >
            <Button.RenderTransform>
                <RotateTransform Angle="-90" />
            </Button.RenderTransform>
        </Button>
        <Button x:Name="Left" Tag="-1,0" Click="MoveClick" Style="{DynamicResource BorderlessButton}" Grid.Row="1" Grid.Column="0" Background="{StaticResource Arrow}" RenderTransformOrigin="0.5,0.5" >
            <Button.RenderTransform>
                <RotateTransform Angle="-180" />
            </Button.RenderTransform>
        </Button>
        <Button x:Name="Down" Tag="0,-1" Click="MoveClick" Style="{DynamicResource BorderlessButton}" Grid.Row="2" Grid.Column="1" Background="{StaticResource Arrow}" RenderTransformOrigin="0.5,0.5" >
            <Button.RenderTransform>
                <RotateTransform Angle="-270" />
            </Button.RenderTransform>
        </Button>
        <Button x:Name="Right" Tag="1,0" Click="MoveClick" Style="{DynamicResource BorderlessButton}" Grid.Row="1" Grid.Column="2" Background="{StaticResource Arrow}" RenderTransformOrigin="0.5,0.5" >
            <Button.RenderTransform>
                <RotateTransform Angle="0" />
            </Button.RenderTransform>
        </Button>
        <Button x:Name="In" Tag="1" Click="ZoomClick" Style="{DynamicResource BorderlessButton}" Grid.Row="0" Grid.Column="3" Background="{StaticResource ZoomIn}" RenderTransformOrigin="0.5,0.5" >
            <Button.RenderTransform>
                <RotateTransform Angle="0" />
            </Button.RenderTransform>
        </Button>
        <Button x:Name="Out" Tag="-1" Click="ZoomClick" Style="{DynamicResource BorderlessButton}" Grid.Row="2" Grid.Column="3" Background="{StaticResource ZoomOut}" RenderTransformOrigin="0.5,0.5" >
            <Button.RenderTransform>
                <RotateTransform Angle="0" />
            </Button.RenderTransform>
        </Button>
    </Grid>
</Window>
Something went wrong with that request. Please try again.