<Window x:Class="AIRS.DirectionWindow"
        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:AIRS"
        mc:Ignorable="d"
        Title="DirectionWindow" Height="300" Width="460" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" Background="#FF18253C" WindowStyle="None">
    <Grid>
        <Label Content="选择带状方向" HorizontalAlignment="Left"  VerticalAlignment="Top" Margin="10,10,0,0" Foreground="White" FontSize="20" FontWeight="Bold"/>
        <Canvas x:Name="can" Background="#FFD7D7D7" Height="180">
            <!--<CheckBox Style="{StaticResource ResourceKey=CheckBoxStyle}" TextBlock.TextAlignment="Center"   Canvas.Top="70" Canvas.Left="45" Margin="0" Width="100" Click="CheckBox_HClick"></CheckBox>-->
            <Border Canvas.Left="95" Canvas.Top="33" PreviewMouseLeftButtonDown="Btn_SClick">
                <Image x:Name="imgS" Source="img/u103.png" Width="20" Height="20" Canvas.Left="95" Canvas.Top="33" RenderTransformOrigin="-0.44,0.61"></Image >
            </Border>
            <Button x:Name="BtnS" Content="纵向带状" HorizontalAlignment="Left" VerticalAlignment="Top" Width="104" Height="37" FontSize="20" Foreground="Black" Background="Transparent" BorderThickness="0" Click="Btn_SClick" Canvas.Left="121" Canvas.Top="26">
            </Button>
            
            <Border Canvas.Left="95" Canvas.Top="91" PreviewMouseLeftButtonDown="Btn_HClick">
            <Image x:Name="imgH" Source="img/u103.png" Width="20" Height="20" Canvas.Left="95" Canvas.Top="91"></Image >
            </Border>
            <Button x:Name="BtnH" Content="横向带状" HorizontalAlignment="Left" VerticalAlignment="Top" Width="104" Height="37" FontSize="20" Foreground="Black" Background="Transparent" BorderThickness="0" Click="Btn_HClick" Canvas.Left="119" Canvas.Top="82">

            </Button>
        </Canvas>
        <Button x:Name="BtnOK" Content="确定" HorizontalAlignment="Left" Margin="170,253,0,0" VerticalAlignment="Top" Width="104" Height="37" FontSize="20" Foreground="White" Background="#FF169BD5" Click="Btn_OKClick" RenderTransformOrigin="1.081,1.524" >
            <Button.Template >
                <ControlTemplate TargetType="{x:Type Button}" >
                    <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
                        <Border.Background>#FF169BD5</Border.Background>
                        <ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
                    </Border>
                </ControlTemplate>
            </Button.Template>
        </Button>
        <Button x:Name="BtnExit" Content="取消" HorizontalAlignment="Left" Margin="315,253,0,0" VerticalAlignment="Top" Width="104" Height="37" FontSize="20" Foreground="White" Background="#FF169BD5" Click="Btn_CanelClick" RenderTransformOrigin="1.081,1.524" >
            <Button.Template >
                <ControlTemplate TargetType="{x:Type Button}" >
                    <Border BorderBrush="{TemplateBinding Control.BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
                        <Border.Background>#FF169BD5</Border.Background>
                        <ContentPresenter Content="{TemplateBinding ContentControl.Content}" HorizontalAlignment="Center" VerticalAlignment="Center" ></ContentPresenter>
                    </Border>
                </ControlTemplate>
            </Button.Template>
        </Button>

    </Grid>
</Window>
