<Window x:Class="KinectCar.MainWindow"
        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"
        mc:Ignorable="d"
        Title="体感控制器" Height="400" Width="600" KeyDown="Window_KeyDown" ResizeMode="CanMinimize" Loaded="Window_Loaded" Closing="Window_Closing">
    <Grid>
        <ToolBar x:Name="ToolBar" VerticalAlignment="Top" Padding="0,0" Margin="0,0" Height="32">
            <Button x:Name="Settings" Content="&#xF013; 设置" ToolTip="设置" Style="{StaticResource FontAwesome}" Click="Settings_Click" VerticalAlignment="Stretch"/>
            <Separator/>
            <Button x:Name="FullScreen" Content="&#xF31E; 全屏" ToolTip="全屏" Style="{StaticResource FontAwesome}" Click="FullScreen_Click" VerticalAlignment="Stretch"/>
            <Separator/>
            <Label x:Name="Status" Content="{Binding StatusText}" ToolTip="状态" Foreground="Gray"/>
            <Separator/>
            <Label x:Name="Tip" Content="{Binding TipText}" Foreground="Gray"/>
        </ToolBar>

        <Viewbox x:Name="ViewBox" Margin="0,32,0,0" HorizontalAlignment="Center">
            <Image Name="Image" Source="{Binding ImageSource}" Stretch="UniformToFill" />
        </Viewbox>

        <Viewbox Margin="0,32,0,0" HorizontalAlignment="Center">
            <Image Source="{Binding BoneSource}" Stretch="UniformToFill" />
        </Viewbox>
    </Grid>
</Window>
