<Window
    x:Class="XHWK.WKTool.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"
    Title="星火微课系统"
    Width="950"
    Height="700"
    Closed="Window_Closed"
    Loaded="Window_Loaded"
    MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
    ResizeMode="CanMinimize"
    ShowInTaskbar="True"
    Style="{StaticResource ZWinStyle}"
    WindowStartupLocation="CenterScreen"
    WindowStyle="SingleBorderWindow"
    mc:Ignorable="d">

    <Window.Resources>
        <Style x:Key="RadBase" TargetType="RadioButton">
            <Setter Property="IsChecked" Value="False" />
            <Setter Property="Background" Value="Transparent" />
            <Setter Property="Foreground" Value="#555" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="RadioButton">
                        <DockPanel
                            Width="{TemplateBinding Width}"
                            Background="{TemplateBinding Background}"
                            LastChildFill="False"
                            ToolTip="{TemplateBinding Content}">
                            <Image
                                x:Name="_img"
                                Height="12"
                                Margin="4,0,0,0"
                                VerticalAlignment="Center"
                                DockPanel.Dock="Left"
                                Source="./Images/rdo_no.png"
                                Stretch="Fill" />
                            <TextBlock
                                Margin="2,0,0,0"
                                VerticalAlignment="Center"
                                DockPanel.Dock="Left"
                                Foreground="{TemplateBinding Foreground}"
                                Text="{TemplateBinding Content}" />
                        </DockPanel>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsChecked" Value="true">
                                <Setter TargetName="_img" Property="Source" Value="./Images/rdo_yes.png" />
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <Style x:Key="NoMouseOverButtonStyle" TargetType="{x:Type Button}">
            <Setter Property="BorderThickness" Value="1" />
            <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
            <Setter Property="HorizontalContentAlignment" Value="Center" />
            <Setter Property="VerticalContentAlignment" Value="Center" />
            <Setter Property="Padding" Value="1" />
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Border
                            x:Name="Chrome"
                            Background="{TemplateBinding Background}"
                            BorderBrush="{TemplateBinding BorderBrush}"
                            SnapsToDevicePixels="true">
                            <ContentPresenter
                                Margin="{TemplateBinding Padding}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                RecognizesAccessKey="True"
                                SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        <!--  ListBox容器样式  -->

        <!--  摄像头样式  -->
    </Window.Resources>

    <Grid>
        <!--  内容区 上：标题栏  下：工具栏和录制区域  -->
        <Grid
            x:Name="GridContent"
            HorizontalAlignment="Stretch"
            Background="#FFF1F2F8">
            <Grid.RowDefinitions>
                <RowDefinition Height="60*" />
                <RowDefinition Height="10*" />
                <RowDefinition Height="955*" />
            </Grid.RowDefinitions>
            <!--  标题栏 左：logo  右：可变工具栏  -->
            <Grid
                x:Name="GridTitle"
                Grid.Row="0"
                Background="White"
                MouseLeftButtonDown="Window_MouseLeftButtonDown">
                <Grid Background="{DynamicResource BackTitle}">

                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="200*" />
                        <ColumnDefinition Width="926*" />
                        <ColumnDefinition Width="160*" />
                    </Grid.ColumnDefinitions>
                    <!--  LOGO  -->
                    <Grid Grid.Column="0">
                        <StackPanel
                            Margin="10,0"
                            HorizontalAlignment="Left"
                            Orientation="Horizontal">
                            <Image
                                Margin="10"
                                VerticalAlignment="Center"
                                Source="./Images/APP.png" />
                            <TextBlock
                                x:Name="TxbTitleName"
                                Margin="10,0,0,0"
                                HorizontalAlignment="Left"
                                VerticalAlignment="Center"
                                FontSize="18"
                                FontWeight="Bold"
                                Style="{DynamicResource LogoColor}"
                                Text="星火微课" />
                        </StackPanel>
                    </Grid>
                    <!--  录制相关Title 926  -->
                    <Grid
                        x:Name="GridRecordingTitle"
                        Grid.Column="1"
                        Visibility="Visible">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="200*" />
                            <ColumnDefinition Width="476*" />
                            <ColumnDefinition Width="160*" />
                            <ColumnDefinition Width="160*" />
                        </Grid.ColumnDefinitions>
                        <!--  智能笔连接状态  -->
                        <Grid Grid.Column="0">
                            <!--<TextBlock Text="设备: " FontSize="14" Padding="0,4,0,0" />-->
                            <StackPanel
                                Margin="0"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Orientation="Horizontal">
                                <Image
                                    x:Name="ImgPenState"
                                    Width="20"
                                    Style="{DynamicResource TitlePenState}" />
                                <TextBlock
                                    x:Name="TxbNotConnected"
                                    Margin="5,0,0,0"
                                    Padding="0"
                                    VerticalAlignment="Center"
                                    Background="{x:Null}"
                                    FontSize="14"
                                    FontWeight="Bold"
                                    Style="{DynamicResource PenStateColor}"
                                    Text="未连接" />
                            </StackPanel>
                        </Grid>
                        <!--  倒计时  -->
                        <Grid Grid.Column="1">
                            <Label
                                Width="2"
                                Margin="0,15"
                                HorizontalAlignment="Left"
                                Background="#FFE5E5E5" />
                            <StackPanel
                                Margin="0"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Orientation="Horizontal">
                                <Image
                                    x:Name="ImgLzImg"
                                    Width="20"
                                    Style="{DynamicResource TitleLZTimeImg}" />
                                <TextBlock
                                    x:Name="TxbTime"
                                    Margin="10,0"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    FontSize="18"
                                    Foreground="#FFFF0000"
                                    Text="00:00" />
                                <TextBlock
                                    x:Name="TxbType"
                                    Margin="10,0"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    FontSize="18"
                                    Style="{DynamicResource TxbMesColor}"
                                    Text="准备就绪" />
                            </StackPanel>
                            <Label
                                Width="2"
                                Margin="0,15"
                                HorizontalAlignment="Right"
                                Background="#FFE5E5E5" />
                        </Grid>
                        <!--  录屏按钮  -->
                        <Grid Name="StartPauseGrid" Grid.Column="2">
                            <StackPanel Orientation="Horizontal" />
                            <Button
                                x:Name="BtnRecord"
                                Margin="5,0"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Center"
                                Click="BtnRecord_Click"
                                Cursor="Hand"
                                FontSize="14"
                                Template="{DynamicResource SkinBtnRecord}" />
                            <Button
                                x:Name="BtnRecordSuspend"
                                Margin="5,0"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Center"
                                Click="BtnRecord_Click"
                                Cursor="Hand"
                                FontSize="14"
                                Template="{DynamicResource SkinBtnRecordSuspend}"
                                Visibility="Collapsed" />
                        </Grid>
                        <Grid Name="StopGrid" Grid.Column="3">
                            <Button
                                x:Name="BtnStop"
                                Margin="5,0"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Center"
                                Click="BtnStop_Click"
                                Cursor="Hand"
                                FontSize="14"
                                Template="{DynamicResource SkinBtnRecordStop}" />
                        </Grid>
                    </Grid>

                    <!--  关闭  -->
                    <Grid Name="CloseGrid" Grid.Column="2">
                        <Label
                            Width="2"
                            Margin="0,15"
                            HorizontalAlignment="Left"
                            Background="#FFE5E5E5" />
                        <Button
                            x:Name="BtnClose"
                            Margin="20,0,10,0"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Center"
                            Click="BtnClose_Click"
                            Cursor="Hand"
                            FontSize="14"
                            Template="{DynamicResource SkinBtnClose}" />
                    </Grid>
                    <!--  测试  -->
                    <Grid Grid.Column="2" Visibility="Collapsed">
                        <Label
                            Width="2"
                            Margin="0,15"
                            HorizontalAlignment="Left"
                            Background="#FFE5E5E5" />
                        <Button
                            Margin="35,0,15,0"
                            HorizontalAlignment="Stretch"
                            VerticalAlignment="Center"
                            Click="BtnClose_Click"
                            Cursor="Hand"
                            FontSize="16">
                            <Button.Template>
                                <ControlTemplate TargetType="{x:Type Button}">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="23*" />
                                            <ColumnDefinition Width="72*" />
                                        </Grid.ColumnDefinitions>
                                        <Image
                                            x:Name="ImgSetUp"
                                            Grid.ColumnSpan="2"
                                            Source="/SkinImages/White/Toolbar_LZ_N.png" />

                                        <Label
                                            x:Name="Word"
                                            Grid.Column="1"
                                            HorizontalAlignment="Center"
                                            VerticalAlignment="Center"
                                            Content="关闭程序"
                                            FontSize="{TemplateBinding FontSize}"
                                            Foreground="#FFEFEFEF" />
                                    </Grid>
                                    <ControlTemplate.Triggers>
                                        <Trigger Property="IsMouseOver" Value="True">
                                            <Setter TargetName="ImgSetUp" Property="Source" Value="/SkinImages/TechnologyBlue/HM_Close_MI.png" />
                                            <Setter TargetName="Word" Property="Foreground" Value="#FFFFFFFF" />
                                        </Trigger>
                                    </ControlTemplate.Triggers>
                                </ControlTemplate>
                            </Button.Template>
                        </Button>
                    </Grid>
                </Grid>
            </Grid>
            <Grid Grid.Row="1" />
            <!--  工具栏和录制区域 H965  -->
            <Grid Grid.Row="2">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="180*" />
                    <ColumnDefinition Width="10*" />
                    <ColumnDefinition Width="1061*" />
                </Grid.ColumnDefinitions>
                <!--  工具栏 W200 H955  -->
                <Grid
                    x:Name="GridToolbars"
                    Grid.Column="0"
                    Background="White">
                    <Grid Background="{DynamicResource BackTool}">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="160*" />
                            <RowDefinition Height="85*" />
                            <RowDefinition Height="85*" />
                            <RowDefinition Height="85*" />
                            <RowDefinition Height="85*" />
                            <RowDefinition Height="85*" />
                            <RowDefinition Height="85*" />
                            <RowDefinition Height="85*" />
                            <RowDefinition Height="85*" />
                            <RowDefinition Height="115*" />
                        </Grid.RowDefinitions>
                        <!--  头像  -->
                        <Grid Grid.Row="0">
                            <!--  登录状态  -->
                            <Button
                                x:Name="BtnLoginType"
                                HorizontalAlignment="Center"
                                VerticalAlignment="Center"
                                Click="BtnLoginType_Click"
                                Cursor="Hand">
                                <StackPanel>
                                    <Border
                                        x:Name="ImgHeadImgN"
                                        Width="70"
                                        Height="70"
                                        CornerRadius="50">
                                        <Border.Background>
                                            <ImageBrush ImageSource="/BlackImages/HM_HeadImg_N.png" />
                                        </Border.Background>
                                    </Border>
                                    <Border
                                        x:Name="ImgHeadImg"
                                        Width="70"
                                        Height="70"
                                        CornerRadius="50"
                                        Visibility="Collapsed">
                                        <Border.Background>
                                            <ImageBrush x:Name="ImgHead" ImageSource="/BlackImages/HM_HeadImg.png" />
                                        </Border.Background>
                                    </Border>
                                    <TextBlock
                                        x:Name="TxbLoginType"
                                        Margin="0,10,0,0"
                                        HorizontalAlignment="Center"
                                        FontSize="14"
                                        Style="{DynamicResource LoginTypeColor}"
                                        Text="未登录" />
                                </StackPanel>
                            </Button>
                        </Grid>
                        <!--  录屏  -->
                        <Grid Grid.Row="1">
                            <Button
                                x:Name="BtnScreenRecording"
                                Padding="0"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                HorizontalContentAlignment="Stretch"
                                VerticalContentAlignment="Stretch"
                                Click="BtnScreenRecording_Click"
                                Cursor="Hand"
                                FontSize="16"
                                Template="{DynamicResource SkinBtnScreenRecording}" />
                        </Grid>
                        <!--  截图  -->
                        <Grid Grid.Row="2">
                            <Button
                                x:Name="BtnScreenshot"
                                Padding="0"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                Click="BtnScreenshot_Click"
                                Cursor="Hand"
                                FontSize="16"
                                Template="{DynamicResource SkinBtnScreenshot}" />
                        </Grid>
                        <!--  导入  -->
                        <Grid Grid.Row="3">
                            <Button
                                x:Name="BtnImport"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                Click="BtnImport_Click"
                                Cursor="Hand"
                                FontSize="16"
                                Template="{DynamicResource SkinBtnImport}" />
                        </Grid>
                        <!--  加页  -->
                        <Grid Grid.Row="4">
                            <Button
                                x:Name="BtnAdd"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                Click="BtnAdd_Click"
                                Cursor="Hand"
                                FontSize="16"
                                Template="{DynamicResource SkinBtnAdd}" />
                        </Grid>
                        <!--  打印  -->
                        <Grid Grid.Row="5">
                            <Button
                                x:Name="BtnPrint"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                Click="BtnPrint_Click"
                                Cursor="Hand"
                                FontSize="16"
                                Template="{DynamicResource SkinBtnPrint}" />
                        </Grid>
                        <!--  我的  -->
                        <Grid Grid.Row="6">
                            <Button
                                x:Name="BtnUpload"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                Click="BtnUpload_Click"
                                Cursor="Hand"
                                FontSize="16"
                                Template="{DynamicResource SkinBtnMy}" />
                        </Grid>
                        <!--  检测  -->
                        <Grid Grid.Row="7">
                            <Button
                                x:Name="BtnDevice"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                Click="BtnDevice_Click"
                                Cursor="Hand"
                                FontSize="16"
                                Template="{DynamicResource SkinBtnDevice}" />
                        </Grid>
                        <!--  设置  -->
                        <Grid Grid.Row="8">
                            <Button
                                x:Name="BtnSetUp"
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                Click="BtnSetUp_Click"
                                Cursor="Hand"
                                FontSize="16"
                                Template="{DynamicResource SkinBtnSetUp}" />
                        </Grid>
                        <!--  测试  -->
                        <Grid
                            Grid.Row="9"
                            Height="85"
                            VerticalAlignment="Top"
                            Visibility="Collapsed">
                            <Button
                                HorizontalAlignment="Stretch"
                                VerticalAlignment="Stretch"
                                Click="BtnSetUp_Click"
                                Cursor="Hand"
                                FontSize="18">
                                <Button.Template>
                                    <ControlTemplate TargetType="{x:Type Button}">
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="100*" />
                                                <ColumnDefinition Width="60*" />
                                                <ColumnDefinition Width="40*" />
                                            </Grid.ColumnDefinitions>
                                            <Image
                                                x:Name="ImgScreenRecording"
                                                Grid.ColumnSpan="3"
                                                Source="/SkinImages/White/Toolbar_SZ.png" />
                                            <Label
                                                x:Name="WordScreenRecording"
                                                Grid.Column="1"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                Content="设置"
                                                FontSize="{TemplateBinding FontSize}"
                                                Foreground="#FF333333" />
                                        </Grid>
                                        <ControlTemplate.Triggers>
                                            <Trigger Property="IsMouseOver" Value="True">
                                                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_MI.png" />
                                            </Trigger>
                                            <Trigger Property="IsPressed" Value="True">
                                                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_CL.png" />
                                                <Setter TargetName="WordScreenRecording" Property="Foreground" Value="#FFFFFFFF" />
                                            </Trigger>
                                            <Trigger Property="IsEnabled" Value="False">
                                                <Setter TargetName="ImgScreenRecording" Property="Source" Value="/SkinImages/White/Toolbar_LP_N.png" />
                                                <Setter TargetName="WordScreenRecording" Property="Foreground" Value="#FFC3C3C3" />
                                            </Trigger>
                                        </ControlTemplate.Triggers>
                                    </ControlTemplate>
                                </Button.Template>
                            </Button>
                        </Grid>
                    </Grid>
                </Grid>
                <Grid Grid.Column="1" />
                <!--  主显示区域  -->
                <Grid Grid.Column="2">
                    <!--  录制区域  -->
                    <Grid x:Name="GridRecordingArea" Visibility="Visible">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="905*" />
                            <RowDefinition Height="3*" />
                            <RowDefinition Height="47*" />
                        </Grid.RowDefinitions>
                        <!--  录制区域  -->
                        <Grid Grid.Row="0">
                            <!--  录制区  -->
                            <Border>
                                <Grid
                                    x:Name="GridMain"
                                    MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
                                    Visibility="Visible">
                                    <ScrollViewer
                                        x:Name="ScroMain"
                                        MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
                                        VerticalScrollBarVisibility="Visible">
                                        <Grid
                                            x:Name="GridM"
                                            Width="auto"
                                            Height="1780"
                                            Margin="0,0,0,0"
                                            Background="#FFFFFF"
                                            MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
                                            Visibility="Visible">
                                            <Grid>
                                                <Border CornerRadius="5">
                                                    <Grid x:Name="Img" Margin="0,0,0,0">
                                                        <Grid.Resources>
                                                            <TransformGroup x:Key="Imageview">
                                                                <ScaleTransform />
                                                                <TranslateTransform />
                                                            </TransformGroup>
                                                        </Grid.Resources>
                                                        <!--  图片表框  -->
                                                        <Rectangle
                                                            x:Name="RectImgBorder"
                                                            Width="300"
                                                            Height="300"
                                                            Margin="373,175,0,0"
                                                            HorizontalAlignment="Left"
                                                            VerticalAlignment="Top"
                                                            Cursor="SizeAll"
                                                            Fill="#00000000"
                                                            SnapsToDevicePixels="True"
                                                            Stroke="#3f6fff"
                                                            StrokeDashArray="4 4"
                                                            StrokeThickness="4"
                                                            Visibility="Hidden" />
                                                        <Image
                                                            x:Name="ImgCanvas"
                                                            Height="0"
                                                            HorizontalAlignment="Left"
                                                            VerticalAlignment="Top"
                                                            Focusable="True"
                                                            MouseDown="PicEMap_MouseDown"
                                                            MouseLeftButtonDown="imgCanvas_MouseLeftButtonDown"
                                                            MouseMove="imgCanvas_MouseMove"
                                                            MouseUp="imgCanvas_MouseUp"
                                                            RenderTransform="{StaticResource Imageview}"
                                                            Stretch="Fill" />
                                                        <!--  四个点  -->
                                                        <Canvas>
                                                            <Thumb
                                                                x:Name="RectLeftUp"
                                                                Canvas.Left="314"
                                                                Canvas.Top="157"
                                                                Width="20"
                                                                Height="20"
                                                                HorizontalAlignment="Left"
                                                                VerticalAlignment="Top"
                                                                Background="White"
                                                                BorderBrush="#3f6fff"
                                                                BorderThickness="2"
                                                                Cursor="SizeNWSE"
                                                                DragCompleted="RectRightUp_DragCompleted"
                                                                DragDelta="RectRightUp_DragDelta"
                                                                DragStarted="RectRightUp_DragStarted"
                                                                Visibility="Hidden" />
                                                            <Thumb
                                                                x:Name="RectRightUp"
                                                                Canvas.Left="775"
                                                                Canvas.Top="157"
                                                                Width="20"
                                                                Height="20"
                                                                HorizontalAlignment="Left"
                                                                VerticalAlignment="Top"
                                                                Background="White"
                                                                BorderBrush="#3f6fff"
                                                                BorderThickness="2"
                                                                Cursor="SizeNESW"
                                                                DragCompleted="RectRightUp_DragCompleted"
                                                                DragDelta="RectRightUp_DragDelta"
                                                                DragStarted="RectRightUp_DragStarted"
                                                                Visibility="Hidden" />
                                                            <Thumb
                                                                x:Name="RectLeftDown"
                                                                Canvas.Left="314"
                                                                Canvas.Top="508"
                                                                Width="20"
                                                                Height="20"
                                                                HorizontalAlignment="Left"
                                                                VerticalAlignment="Top"
                                                                Background="White"
                                                                BorderBrush="#3f6fff"
                                                                BorderThickness="2"
                                                                Cursor="SizeNESW"
                                                                DragCompleted="RectRightUp_DragCompleted"
                                                                DragDelta="RectRightUp_DragDelta"
                                                                DragStarted="RectRightUp_DragStarted"
                                                                Visibility="Hidden" />
                                                            <Thumb
                                                                x:Name="RectRightDown"
                                                                Canvas.Left="775"
                                                                Canvas.Top="508"
                                                                Width="20"
                                                                Height="20"
                                                                HorizontalAlignment="Left"
                                                                VerticalAlignment="Top"
                                                                Background="White"
                                                                BorderBrush="#3f6fff"
                                                                BorderThickness="2"
                                                                Cursor="SizeNWSE"
                                                                DragCompleted="RectRightUp_DragCompleted"
                                                                DragDelta="RectRightUp_DragDelta"
                                                                DragStarted="RectRightUp_DragStarted"
                                                                Visibility="Hidden" />
                                                        </Canvas>
                                                    </Grid>
                                                </Border>
                                            </Grid>
                                            <Image
                                                x:Name="ImgDocumentation"
                                                Grid.RowSpan="2"
                                                Stretch="Fill"
                                                Visibility="Visible" />
                                            <Image
                                                x:Name="ImgPpt"
                                                VerticalAlignment="Top"
                                                Visibility="Visible" />
                                            <!--  导入图片  -->
                                            <!--<Button Cursor="Hand" x:Name="btnOk" Height="50" Width="50" Content="√" FontSize="26" Background="#3f6fff" Foreground="#FFFFFF" Click="btnOk_Click" Visibility="Collapsed" />-->
                                            <InkCanvas
                                                x:Name="BlackboardCanvas"
                                                Grid.Row="0"
                                                Background="Transparent"
                                                Visibility="Collapsed" />
                                            <!--  摄像头  -->
                                        </Grid>
                                    </ScrollViewer>
                                    <Image
                                        x:Name="HeadImg"
                                        Width="172"
                                        Height="124"
                                        Margin="10,7,10,10"
                                        HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        RenderTransformOrigin="0.5,0.5"
                                        Visibility="Collapsed">
                                        <Image.RenderTransform>
                                            <ScaleTransform ScaleX="-1" />
                                        </Image.RenderTransform>
                                    </Image>

                                </Grid>
                            </Border>
                        </Grid>
                        <Grid Grid.Row="1" />
                        <!--  底部工具栏  -->
                        <Grid
                            x:Name="GridBottomToolbars"
                            Grid.Row="2"
                            Background="#FFFFFFFF"
                            Visibility="Visible">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="200" />
                                <ColumnDefinition Width="*" />
                                <ColumnDefinition Width="200" />
                            </Grid.ColumnDefinitions>
                            <!--  页码  -->
                            <Grid
                                x:Name="GridPage"
                                Grid.Row="0"
                                Grid.Column="0"
                                HorizontalAlignment="Left"
                                VerticalAlignment="Center"
                                MouseLeftButtonDown="Window_MouseLeftButtonDown_1"
                                Visibility="Collapsed">
                                <StackPanel
                                    Grid.Row="0"
                                    Height="30"
                                    Margin="0,0,0,0"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Bottom"
                                    Background="Transparent"
                                    Orientation="Horizontal">

                                    <Label
                                        Margin="5,0,0,0"
                                        VerticalAlignment="Center"
                                        Content="页码:" />

                                    <Button
                                        x:Name="LastButton"
                                        Width="28"
                                        Height="20"
                                        Click="last_button_Click"
                                        Cursor="Hand">
                                        <StackPanel>
                                            <Image
                                                Width="16"
                                                Height="12"
                                                Source=".\Images\class_p1.png" />
                                        </StackPanel>
                                    </Button>
                                    <Grid
                                        Width="60"
                                        Background="Transparent"
                                        MouseLeftButtonDown="Window_MouseLeftButtonDown_1">
                                        <StackPanel
                                            HorizontalAlignment="Center"
                                            Background="Transparent"
                                            Orientation="Horizontal">
                                            <TextBlock
                                                x:Name="TxbCurrpage"
                                                Margin="0"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                FontSize="14"
                                                Text="{Binding currpage}"
                                                TextAlignment="Center" />
                                            <TextBlock
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                FontSize="14"
                                                Text="/"
                                                TextAlignment="Center" />
                                            <TextBlock
                                                x:Name="TxbTotalpage"
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                FontSize="14"
                                                Text="{Binding pagenum}"
                                                TextAlignment="Center" />
                                        </StackPanel>
                                    </Grid>
                                    <Button
                                        x:Name="NextBtn"
                                        Width="28"
                                        Height="20"
                                        Background="Transparent"
                                        Click="next_btn_Click"
                                        Cursor="Hand">
                                        <StackPanel>
                                            <Image
                                                Width="16"
                                                Height="12"
                                                Source=".\Images\class_p2.png" />
                                        </StackPanel>
                                    </Button>
                                </StackPanel>
                            </Grid>
                            <StackPanel
                                Grid.Column="1"
                                Margin="5"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Center"
                                Orientation="Horizontal">
                                <TextBlock
                                    Margin="5,0,0,0"
                                    Padding="0,0,0,0"
                                    VerticalAlignment="Center"
                                    FontSize="12"
                                    Text="颜色: " />
                                <Button
                                    x:Name="BtnWhite"
                                    Width="20"
                                    Height="20"
                                    Margin="0,2,0,0"
                                    Background="#FFFFFF"
                                    Click="BtnWhite_Click"
                                    Cursor="Hand"
                                    Visibility="Collapsed" />
                                <Border
                                    Width="20"
                                    Height="20"
                                    Margin="5,2,0,0">
                                    <Button
                                        x:Name="BtnRed"
                                        Width="20"
                                        Height="20"
                                        Margin="1,1,1,1"
                                        HorizontalAlignment="Center"
                                        Background="#FF0000"
                                        Click="BtnRed_Click"
                                        Cursor="Hand"
                                        Style="{StaticResource NoMouseOverButtonStyle}">
                                        <Image
                                            x:Name="ImgRed"
                                            Width="12"
                                            Source=".\Images\microLessonSystem_999.png"
                                            Visibility="Visible" />
                                    </Button>
                                </Border>
                                <Border
                                    Width="20"
                                    Height="20"
                                    Margin="5,2,0,0">
                                    <Button
                                        x:Name="BtnGray"
                                        Width="20"
                                        Height="20"
                                        Margin="1,1,1,1"
                                        Background="#333333"
                                        Click="BtnGray_Click"
                                        Cursor="Hand"
                                        Style="{StaticResource NoMouseOverButtonStyle}">
                                        <Image
                                            x:Name="ImgGray"
                                            Width="12"
                                            Source=".\Images\microLessonSystem_999.png"
                                            Visibility="Collapsed" />
                                    </Button>
                                </Border>
                                <Border
                                    Width="20"
                                    Height="20"
                                    Margin="5,2,0,0">
                                    <Button
                                        x:Name="BtnCyanBlue"
                                        Width="20"
                                        Height="20"
                                        Margin="1,1,1,1"
                                        Background="#63D600"
                                        Click="BtnCyanBlue_Click"
                                        Cursor="Hand"
                                        Style="{StaticResource NoMouseOverButtonStyle}">
                                        <Image
                                            x:Name="ImgCyanBlue"
                                            Width="12"
                                            Source=".\Images\microLessonSystem_999.png"
                                            Visibility="Collapsed" />
                                    </Button>
                                </Border>
                                <Border
                                    Width="20"
                                    Height="20"
                                    Margin="5,2,0,0">

                                    <Button
                                        x:Name="BtnYellow"
                                        Width="20"
                                        Height="20"
                                        Margin="1,1,1,1"
                                        Background="#FFBC00"
                                        Click="BtnYellow_Click"
                                        Cursor="Hand"
                                        Style="{StaticResource NoMouseOverButtonStyle}">

                                        <Image
                                            x:Name="ImgYellow"
                                            Width="12"
                                            Source=".\Images\microLessonSystem_999.png"
                                            Visibility="Collapsed" />
                                    </Button>
                                </Border>
                                <Border
                                    Width="20"
                                    Height="20"
                                    Margin="5,2,0,0">

                                    <Button
                                        x:Name="BtnBlue"
                                        Width="20"
                                        Height="20"
                                        Margin="1,1,1,1"
                                        Background="#00B4FC"
                                        Click="BtnBlue_Click"
                                        Cursor="Hand"
                                        Style="{StaticResource NoMouseOverButtonStyle}">
                                        <Image
                                            x:Name="ImgBlue"
                                            Width="12"
                                            Source=".\Images\microLessonSystem_999.png"
                                            Visibility="Collapsed" />
                                    </Button>
                                </Border>
                                <TextBlock
                                    Margin="5,0,0,0"
                                    Padding="0,0,0,0"
                                    VerticalAlignment="Center"
                                    FontSize="12"
                                    Text="粗细: " />
                                <RadioButton
                                    x:Name="RbnFine"
                                    Margin="0"
                                    VerticalAlignment="Center"
                                    Click="RbnFine_Click"
                                    Content=" 细"
                                    Cursor="Hand"
                                    FontSize="12"
                                    IsChecked="True"
                                    Style="{StaticResource RadBase}" />
                                <RadioButton
                                    x:Name="RbnIn"
                                    Margin="5,0,0,0"
                                    VerticalAlignment="Center"
                                    Click="RbnIn_Click"
                                    Content=" 中"
                                    Cursor="Hand"
                                    FontSize="12"
                                    Style="{StaticResource RadBase}" />
                                <RadioButton
                                    x:Name="RbnCrude"
                                    Margin="5,0,0,0"
                                    VerticalAlignment="Center"
                                    Click="RbnCrude_Click"
                                    Content=" 粗"
                                    Cursor="Hand"
                                    FontSize="12"
                                    Style="{StaticResource RadBase}" />
                            </StackPanel>
                            <StackPanel
                                Grid.Column="2"
                                Margin="5"
                                HorizontalAlignment="Right"
                                VerticalAlignment="Center"
                                Orientation="Horizontal">
                                <TextBlock
                                    Padding="5,0,0,0"
                                    VerticalAlignment="Center"
                                    FontSize="12"
                                    Text="摄像头: " />
                                <RadioButton
                                    x:Name="RbnOpen"
                                    Margin="0,0,0,0"
                                    VerticalAlignment="Center"
                                    Click="RbnOpen_Click"
                                    Content=" 开"
                                    Cursor="Hand"
                                    FontSize="12"
                                    Style="{StaticResource RadBase}" />
                                <RadioButton
                                    x:Name="RbnTurnOff"
                                    Margin="5,0,10,0"
                                    VerticalAlignment="Center"
                                    Click="RbnTurnOff_Click"
                                    Content=" 关"
                                    Cursor="Hand"
                                    FontSize="12"
                                    IsChecked="True"
                                    Style="{StaticResource RadBase}" />
                            </StackPanel>
                        </Grid>
                    </Grid>
                    <!--  设置 955  -->
                    <ScrollViewer
                        x:Name="GridSetUp"
                        VerticalScrollBarVisibility="Auto"
                        Visibility="Collapsed">
                        <Grid Height="650">
                            <Grid Background="#FFFFFF">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="146" />
                                    <RowDefinition Height="160*" />
                                    <RowDefinition Height="100*" />
                                    <RowDefinition Height="200*" />
                                    <RowDefinition Height="90*" />
                                    <RowDefinition Height="205*" />
                                </Grid.RowDefinitions>
                                <!--  更换皮肤 h200  -->
                                <Grid Grid.Row="0" Margin="100,0">
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="20" />
                                        <RowDefinition Height="20" />
                                        <RowDefinition Height="140" />
                                        <RowDefinition Height="20" />
                                    </Grid.RowDefinitions>
                                    <Grid Grid.Row="1" Grid.Column="0">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="100" />
                                            <ColumnDefinition Width="646*" />
                                        </Grid.ColumnDefinitions>
                                        <TextBlock
                                            Grid.Column="0"
                                            HorizontalAlignment="Right"
                                            VerticalAlignment="Center"
                                            FontSize="16"
                                            Foreground="#333333"
                                            Text="更换皮肤" />
                                    </Grid>
                                    <Grid Grid.Row="2">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="100" />
                                            <ColumnDefinition Width="207*" />
                                            <ColumnDefinition Width="207*" />
                                            <ColumnDefinition Width="207*" />
                                            <ColumnDefinition Width="120*" />
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="80" />
                                            <RowDefinition Height="36" />
                                        </Grid.RowDefinitions>
                                        <Grid
                                            Grid.Row="0"
                                            Grid.Column="1"
                                            Margin="5,0">
                                            <Button
                                                x:Name="BtnSkinWhite"
                                                HorizontalAlignment="Stretch"
                                                VerticalAlignment="Center"
                                                Click="BtnSkinWhite_Click"
                                                Cursor="Hand">
                                                <Button.Template>
                                                    <ControlTemplate TargetType="{x:Type Button}">
                                                        <StackPanel>
                                                            <Image x:Name="ImgRecord" Source="/SkinImages/Skin/Skin_White.png" />
                                                        </StackPanel>
                                                        <ControlTemplate.Triggers>
                                                            <Trigger Property="IsMouseOver" Value="True">
                                                                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/Skin/Skin_White_MI.png" />
                                                            </Trigger>
                                                        </ControlTemplate.Triggers>
                                                    </ControlTemplate>
                                                </Button.Template>
                                            </Button>
                                            <Image
                                                x:Name="SkinSelectWhite"
                                                Margin="140,0,15,15"
                                                HorizontalAlignment="Right"
                                                VerticalAlignment="Bottom"
                                                Source="/SkinImages/Skin/Skin_Select.png" />
                                        </Grid>
                                        <Grid
                                            Grid.Row="0"
                                            Grid.Column="2"
                                            Margin="5,0">
                                            <Button
                                                x:Name="BtnSkinTechnologyBlue"
                                                HorizontalAlignment="Stretch"
                                                VerticalAlignment="Center"
                                                Click="BtnSkinTechnologyBlue_Click"
                                                Cursor="Hand">
                                                <Button.Template>
                                                    <ControlTemplate TargetType="{x:Type Button}">
                                                        <StackPanel>
                                                            <Image x:Name="ImgRecord" Source="/SkinImages/Skin/Skin_TechnologyBlue.png" />
                                                        </StackPanel>
                                                        <ControlTemplate.Triggers>
                                                            <Trigger Property="IsMouseOver" Value="True">
                                                                <Setter TargetName="ImgRecord" Property="Source" Value="/SkinImages/Skin/Skin_TechnologyBlue_MI.png" />
                                                            </Trigger>
                                                        </ControlTemplate.Triggers>
                                                    </ControlTemplate>
                                                </Button.Template>
                                            </Button>
                                            <Image
                                                x:Name="SkinSelectTechnologyBlue"
                                                Margin="140,0,15,15"
                                                HorizontalAlignment="Right"
                                                VerticalAlignment="Bottom"
                                                Source="/SkinImages/Skin/Skin_Select.png"
                                                Visibility="Hidden" />
                                        </Grid>

                                        <Grid Grid.Row="1" Grid.Column="1">
                                            <TextBlock
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                FontSize="16"
                                                Foreground="#333333"
                                                Text="经典白" />
                                        </Grid>
                                        <Grid Grid.Row="1" Grid.Column="2">
                                            <TextBlock
                                                HorizontalAlignment="Center"
                                                VerticalAlignment="Center"
                                                FontSize="16"
                                                Foreground="#333333"
                                                Text="科技蓝" />
                                        </Grid>
                                    </Grid>

                                    <Label
                                        Grid.Row="3"
                                        Height="1"
                                        VerticalAlignment="Bottom"
                                        Background="#FFEFEFEF" />
                                </Grid>
                                <!--  视频格式 摄像头位置 h200  -->
                                <Grid Grid.Row="1" Margin="100,0">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="100" />
                                            <ColumnDefinition Width="215*" />
                                            <ColumnDefinition Width="215*" />
                                            <ColumnDefinition Width="216*" />
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="20*" />
                                            <RowDefinition Height="60*" />
                                            <RowDefinition Height="60*" />
                                            <RowDefinition Height="20*" />
                                        </Grid.RowDefinitions>
                                        <Grid Grid.Row="1" Grid.Column="0">
                                            <TextBlock
                                                Grid.Column="0"
                                                HorizontalAlignment="Right"
                                                VerticalAlignment="Center"
                                                FontSize="16"
                                                Foreground="#333333"
                                                Text="视频格式" />
                                        </Grid>
                                        <Grid Grid.Row="1" Grid.Column="1">
                                            <StackPanel
                                                Margin="15,0,0,0"
                                                HorizontalAlignment="Left"
                                                VerticalAlignment="Center"
                                                Orientation="Horizontal">
                                                <RadioButton
                                                    x:Name="RbnMp4"
                                                    VerticalAlignment="Top"
                                                    Content=" MP4"
                                                    Cursor="Hand"
                                                    FontSize="16"
                                                    Foreground="#333333"
                                                    IsChecked="True"
                                                    Style="{StaticResource RadBase}" />
                                                <RadioButton
                                                    x:Name="RbnFlv"
                                                    Margin="15,0,0,0"
                                                    VerticalAlignment="Top"
                                                    Content=" FLV"
                                                    Cursor="Hand"
                                                    FontSize="16"
                                                    Foreground="#333333"
                                                    Style="{StaticResource RadBase}"
                                                    Visibility="Collapsed" />
                                                <RadioButton
                                                    x:Name="RbnAvi"
                                                    Margin="15,0,0,0"
                                                    Content=" AVI"
                                                    Cursor="Hand"
                                                    FontSize="16"
                                                    Foreground="#333333"
                                                    Style="{StaticResource RadBase}"
                                                    Visibility="Collapsed" />
                                            </StackPanel>
                                        </Grid>
                                        <Grid Grid.Row="1" Grid.Column="2">
                                            <TextBlock
                                                HorizontalAlignment="Right"
                                                VerticalAlignment="Center"
                                                FontSize="16"
                                                Foreground="#333333"
                                                Text="头像位置" />
                                        </Grid>
                                        <Grid Grid.Row="1" Grid.Column="3">
                                            <StackPanel
                                                Margin="15,0,0,0"
                                                HorizontalAlignment="Left"
                                                VerticalAlignment="Center"
                                                Orientation="Horizontal">
                                                <RadioButton
                                                    x:Name="RbnLeft"
                                                    Margin="0"
                                                    HorizontalAlignment="Left"
                                                    VerticalAlignment="Center"
                                                    Content=" 左上"
                                                    Cursor="Hand"
                                                    FontSize="16"
                                                    Foreground="#333333"
                                                    GroupName="RbtnCamera"
                                                    Style="{StaticResource RadBase}" />
                                                <RadioButton
                                                    x:Name="RbnRight"
                                                    Margin="15,0,0,0"
                                                    HorizontalAlignment="Right"
                                                    VerticalAlignment="Center"
                                                    Content=" 右上"
                                                    Cursor="Hand"
                                                    FontSize="16"
                                                    Foreground="#333333"
                                                    GroupName="RbtnCamera"
                                                    IsChecked="True"
                                                    Style="{StaticResource RadBase}" />

                                            </StackPanel>
                                        </Grid>
                                        <Grid Grid.Row="2" Grid.Column="3">
                                            <StackPanel
                                                Margin="15,0,0,0"
                                                HorizontalAlignment="Left"
                                                VerticalAlignment="Center"
                                                Orientation="Horizontal">

                                                <RadioButton
                                                    x:Name="RbnLeftUnder"
                                                    HorizontalAlignment="Left"
                                                    VerticalAlignment="Center"
                                                    Content=" 左下"
                                                    Cursor="Hand"
                                                    FontSize="16"
                                                    Foreground="#333333"
                                                    GroupName="RbtnCamera"
                                                    Style="{StaticResource RadBase}" />

                                                <RadioButton
                                                    x:Name="RbnRightUnder"
                                                    Margin="15,0"
                                                    HorizontalAlignment="Left"
                                                    VerticalAlignment="Center"
                                                    Content=" 右下"
                                                    Cursor="Hand"
                                                    FontSize="16"
                                                    Foreground="#333333"
                                                    GroupName="RbtnCamera"
                                                    Style="{StaticResource RadBase}" />
                                            </StackPanel>
                                        </Grid>
                                        <Grid Grid.Row="2" Grid.Column="0">
                                            <TextBlock
                                                HorizontalAlignment="Right"
                                                VerticalAlignment="Center"
                                                FontSize="16"
                                                Foreground="#333333"
                                                Text="录屏工具栏" />
                                        </Grid>
                                        <Grid Grid.Row="2" Grid.Column="1">
                                            <StackPanel
                                                Margin="15,0,0,0"
                                                HorizontalAlignment="Left"
                                                VerticalAlignment="Center"
                                                Orientation="Horizontal">
                                                <RadioButton
                                                    x:Name="RbnHide"
                                                    VerticalAlignment="Top"
                                                    Content=" 隐藏"
                                                    Cursor="Hand"
                                                    FontSize="16"
                                                    Foreground="#333333"
                                                    IsChecked="True"
                                                    Style="{StaticResource RadBase}" />
                                                <RadioButton
                                                    x:Name="Rbnvisi"
                                                    Margin="15,0,0,0"
                                                    VerticalAlignment="Top"
                                                    Content=" 显示"
                                                    Cursor="Hand"
                                                    FontSize="16"
                                                    Foreground="#333333"
                                                    Style="{StaticResource RadBase}" />
                                            </StackPanel>
                                        </Grid>
                                        <Grid Grid.Row="2" Grid.Column="2" />
                                    </Grid>
                                    <Label
                                        Height="1"
                                        VerticalAlignment="Bottom"
                                        Background="#FFEFEFEF" />
                                </Grid>
                                <!--  地址修改 h305  -->
                                <Grid Grid.Row="2" Margin="100,0">
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="100" />
                                            <ColumnDefinition Width="430*" />
                                            <ColumnDefinition Width="215*" />
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="20*" />
                                            <RowDefinition Height="60*" />
                                            <RowDefinition Height="20*" />
                                        </Grid.RowDefinitions>
                                        <!--  地址 废弃2021年7月9日赵耀  -->
                                        <Grid Visibility="Collapsed" />
                                        <Grid Grid.Row="1" Grid.Column="0">
                                            <TextBlock
                                                Padding="0,0,0,0"
                                                HorizontalAlignment="Right"
                                                VerticalAlignment="Center"
                                                FontSize="16"
                                                Foreground="#333333"
                                                Text="文件路径" />
                                        </Grid>
                                        <Grid Grid.Row="1" Grid.Column="1">
                                            <Grid>
                                                <Border
                                                    Height="30"
                                                    Margin="10,0,0,0"
                                                    BorderBrush="#FFE3E3E3"
                                                    BorderThickness="1"
                                                    CornerRadius="1">
                                                    <Label
                                                        x:Name="TxbStoragePath"
                                                        Margin="10,0"
                                                        Background="#FFFFFF"
                                                        BorderBrush="{x:Null}"
                                                        BorderThickness="0"
                                                        Content="D:\"
                                                        FontSize="14"
                                                        Foreground="#333333" />
                                                </Border>
                                            </Grid>
                                        </Grid>
                                        <Grid Grid.Row="1" Grid.Column="2">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="76" />
                                                <ColumnDefinition Width="76" />
                                            </Grid.ColumnDefinitions>
                                            <!--  浏览按钮  -->
                                            <Button
                                                x:Name="BtnBrowse"
                                                Grid.Column="0"
                                                Width="66"
                                                Height="30"
                                                HorizontalAlignment="Stretch"
                                                VerticalAlignment="Stretch"
                                                Background="#3f6fff"
                                                Click="BtnBrowse_Click"
                                                Content="浏览"
                                                Cursor="Hand"
                                                FontSize="14"
                                                Foreground="#FFFFFF" />
                                            <!--  打开按钮  -->
                                            <Button
                                                x:Name="BtnOpen"
                                                Grid.Column="1"
                                                Width="66"
                                                Height="30"
                                                HorizontalAlignment="Stretch"
                                                VerticalAlignment="Stretch"
                                                Background="#3f6fff"
                                                Click="btnOpen_Click"
                                                Content="打开"
                                                Cursor="Hand"
                                                FontSize="14"
                                                Foreground="#FFFFFF" />
                                        </Grid>
                                    </Grid>
                                    <Label
                                        Height="1"
                                        VerticalAlignment="Bottom"
                                        Background="#FFEFEFEF" />
                                </Grid>
                                <!--  版权 快捷键 版本号 h200  -->
                                <Grid Grid.Row="3" Margin="100,0">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="100" />
                                        <ColumnDefinition Width="215*" />
                                        <ColumnDefinition Width="215*" />
                                        <ColumnDefinition Width="215*" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="20*" />
                                        <RowDefinition Height="60*" />
                                        <RowDefinition Height="60*" />
                                        <RowDefinition Height="60*" />
                                    </Grid.RowDefinitions>
                                    <Grid Grid.Row="1" Grid.Column="0">
                                        <TextBlock
                                            Padding="0,0,0,0"
                                            HorizontalAlignment="Right"
                                            VerticalAlignment="Center"
                                            FontSize="16"
                                            Foreground="#FF666666"
                                            Text="录屏快捷键" />
                                    </Grid>
                                    <Grid
                                        Grid.Row="1"
                                        Grid.Column="1"
                                        Grid.ColumnSpan="3">
                                        <TextBlock
                                            Margin="20,0,0,0"
                                            VerticalAlignment="Center"
                                            FontSize="16"
                                            Foreground="#FF666666"
                                            Text="开始/暂停：Ctrl+F5  停止：Ctrl+F6     退出讲评：鼠标右键" />
                                    </Grid>
                                    <Grid Grid.Row="2" Grid.Column="0">
                                        <TextBlock
                                            HorizontalAlignment="Right"
                                            VerticalAlignment="Center"
                                            FontSize="16"
                                            Foreground="#FF666666"
                                            Text="版权所有" />
                                    </Grid>
                                    <Grid
                                        Grid.Row="2"
                                        Grid.Column="1"
                                        Grid.ColumnSpan="3">
                                        <TextBlock
                                            Margin="20,0,0,0"
                                            VerticalAlignment="Center"
                                            FontSize="16"
                                            Foreground="#FF666666"
                                            Text="河南星火燎原软件科技有限公司" />
                                    </Grid>

                                    <Grid Grid.Row="3" Grid.Column="0">
                                        <TextBlock
                                            Margin="0,0,0,0"
                                            HorizontalAlignment="Right"
                                            VerticalAlignment="Center"
                                            FontSize="16"
                                            Foreground="#FF666666"
                                            Text="版本" />
                                    </Grid>
                                    <Grid Grid.Row="3" Grid.Column="1">
                                        <TextBlock
                                            x:Name="Txbv"
                                            Margin="20,0,0,0"
                                            VerticalAlignment="Center"
                                            FontSize="16"
                                            Foreground="#FF666666"
                                            Text="V0.0.0" />
                                    </Grid>
                                </Grid>
                                <!--  按钮 h50  -->
                                <Grid Grid.Row="4" Margin="100,0">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="215*" />
                                        <ColumnDefinition Width="530*" />
                                        <ColumnDefinition Width="180*" />
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="50*" />
                                    </Grid.RowDefinitions>
                                    <Grid Grid.Column="2">
                                        <!--  保存  -->
                                        <Button
                                            x:Name="BtnSave"
                                            Width="76"
                                            Height="30"
                                            HorizontalAlignment="Stretch"
                                            VerticalAlignment="Center"
                                            Background="#3f6fff"
                                            Click="BtnSave_Click"
                                            Content="保存"
                                            Cursor="Hand"
                                            FontSize="14"
                                            Foreground="#FFFFFF" />
                                    </Grid>

                                    <Grid
                                        Grid.Row="0"
                                        Grid.Column="0"
                                        Visibility="Collapsed">
                                        <TextBlock
                                            Margin="0,30,0,0"
                                            HorizontalAlignment="Right"
                                            FontSize="16"
                                            Foreground="#333333"
                                            Text="设备"
                                            Visibility="Hidden" />
                                        <TextBlock
                                            x:Name="TxbNotConnecteds"
                                            Margin="30,30,0,0"
                                            FontSize="14"
                                            Foreground="#333333"
                                            Text="未连接"
                                            Visibility="Hidden" />
                                    </Grid>
                                </Grid>
                            </Grid>
                        </Grid>
                    </ScrollViewer>

                    <!--  我的  -->
                    <Grid
                        x:Name="GridMyVideo"
                        Margin="0"
                        Background="White"
                        Visibility="Collapsed">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="905*" />
                            <RowDefinition Height="50*" />
                        </Grid.RowDefinitions>
                        <Label
                            x:Name="LblVideoMess"
                            Grid.Row="0"
                            Margin="0,0,0,100"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            Content="暂无微课录制信息，请录制并等待保存完成后重试！"
                            FontSize="20"
                            Visibility="Hidden" />
                        <Button
                            x:Name="BtnVideoUpPage"
                            Grid.Row="1"
                            Width="60"
                            Margin="0,0,150,12"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Bottom"
                            Background="{x:Null}"
                            BorderBrush="{x:Null}"
                            Click="BtnVideoUpPage_Click"
                            Content="上一页"
                            Cursor="Hand"
                            FontSize="16"
                            Foreground="#FF333333" />
                        <Label
                            x:Name="LblVideoPageNum"
                            Grid.Row="1"
                            Margin="0,0,0,10"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Bottom"
                            Content="100/100"
                            FontSize="14"
                            Foreground="#FF333333" />
                        <Button
                            x:Name="BtnVideoDownPage"
                            Grid.Row="1"
                            Width="60"
                            Margin="150,0,0,12"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Bottom"
                            Background="{x:Null}"
                            BorderBrush="{x:Null}"
                            Click="BtnVideoDownPage_Click"
                            Content="下一页"
                            Cursor="Hand"
                            FontSize="16"
                            Foreground="#FF333333" />
                    </Grid>
                    <!--  打印  -->
                    <Grid
                        x:Name="GridPrintContent"
                        Background="White"
                        Visibility="Collapsed">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="905*" />
                            <RowDefinition Height="50*" />
                        </Grid.RowDefinitions>

                        <Grid Grid.Row="0">
                            <Border BorderBrush="#FFDCDCDC" BorderThickness="1">
                                <ScrollViewer VerticalScrollBarVisibility="Visible">
                                    <Image x:Name="ImgPri" />
                                </ScrollViewer>
                            </Border>
                        </Grid>
                    </Grid>
                </Grid>
            </Grid>
        </Grid>

        <!--  打印相关  -->
        <Border
            x:Name="GridPrintingTitle"
            Width="446"
            Height="108"
            BorderBrush="#eeeeee"
            BorderThickness="1"
            Visibility="Collapsed">
            <Grid Background="#ffffff">
                <Grid.RowDefinitions>
                    <RowDefinition Height="40" />
                    <RowDefinition Height="64" />
                </Grid.RowDefinitions>
                <Grid Grid.Row="0" Background="#3F6FFF">
                    <TextBlock
                        Margin="10,0,0,0"
                        VerticalAlignment="Center"
                        FontSize="16"
                        Foreground="White"
                        Text="打印" />

                    <Button
                        Grid.Row="0"
                        Width="46"
                        Margin="0,-2,0,0"
                        HorizontalAlignment="Right"
                        VerticalContentAlignment="Center"
                        Click="BtnPrintCloseClick"
                        Content="×"
                        Cursor="Hand"
                        FontSize="30"
                        Foreground="White" />
                </Grid>

                <Grid Grid.Row="1">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="30" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="Auto" />
                    </Grid.ColumnDefinitions>

                    <Image
                        Grid.Column="0"
                        Width="20"
                        Height="20"
                        Margin="10,0,0,0"
                        HorizontalAlignment="Center"
                        VerticalAlignment="Center"
                        Source="./Images/shuoming.png" />
                    <Button
                        x:Name="BtnPrintExplain"
                        Grid.Column="1"
                        Height="36"
                        Margin="6,0,0,0"
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch"
                        Click="btnPrintExplain_Click"
                        Content="打印说明"
                        Cursor="Hand"
                        FontSize="16"
                        Foreground="#3F6FFF"
                        IsDefault="True" />

                    <Button
                        Grid.Column="3"
                        Width="100"
                        Height="36"
                        Margin="0,0,10,0"
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Center"
                        Background="#3F6FFF"
                        Click="Print_No_Code_Click"
                        Content="普通打印"
                        Cursor="Hand"
                        FontSize="16"
                        Foreground="White"
                        IsDefault="True" />

                    <Button
                        x:Name="BtnPrintPrint"
                        Grid.Column="4"
                        Width="100"
                        Height="36"
                        Margin="0,0,10,0"
                        HorizontalAlignment="Stretch"
                        VerticalAlignment="Stretch"
                        Background="#3F6FFF"
                        Click="BtnPrint_Print_Click"
                        Content="铺码打印"
                        Cursor="Hand"
                        FontSize="16"
                        Foreground="White"
                        IsDefault="True" />
                </Grid>
            </Grid>
        </Border>

        <Grid
            x:Name="GridPrintMask"
            Background="#4C000000"
            Visibility="Collapsed">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="15*" />
                <ColumnDefinition Width="70*" />
                <ColumnDefinition Width="15*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="35*" />
                <RowDefinition Height="100" />
                <RowDefinition Height="45*" />
            </Grid.RowDefinitions>
            <Grid Grid.Row="1" Grid.Column="1">
                <Label
                    x:Name="LabPrintMessage"
                    Height="35"
                    Margin="0,10,0,0"
                    HorizontalAlignment="Center"
                    VerticalAlignment="Top"
                    Content="打印中..."
                    FontSize="22"
                    Foreground="#FFF9F7F7" />
                <ProgressBar
                    x:Name="PgbProcess"
                    Grid.Row="0"
                    Height="20"
                    Margin="50,20,50,0"
                    BorderBrush="#4597FF"
                    Foreground="#4597FF"
                    Visibility="Visible" />
                <Label
                    x:Name="LbProcess"
                    Grid.Row="0"
                    Width="60"
                    Height="30"
                    Margin="0,20,0,0"
                    HorizontalAlignment="Center"
                    Content=""
                    FontSize="16"
                    Foreground="White"
                    Visibility="Visible" />
            </Grid>
        </Grid>
    </Grid>
</Window>
