<Window
    x:Class="XHWK.WKTool.CreateAMicroLessonWindow"
    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="800"
    Height="450"
    Closed="Window_Closed"
    Loaded="Window_Loaded"
    Style="{StaticResource ZWinStyle}"
    WindowStartupLocation="CenterScreen"
    WindowStyle="SingleBorderWindow"
    mc:Ignorable="d">

    <Window.Resources />
    <Grid>
        <Grid Background="#FF4B95FF" MouseLeftButtonDown="Window_MouseLeftButtonDown">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="520*" />
                <ColumnDefinition Width="280*" />
            </Grid.ColumnDefinitions>
            <!--  轮播图  -->
            <Grid Grid.Column="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="28*" />
                    <RowDefinition Height="380*" />
                    <RowDefinition Height="28*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="15*" />
                    <ColumnDefinition Width="481*" />
                    <ColumnDefinition Width="15*" />
                </Grid.ColumnDefinitions>
                <!--<MediaElement Grid.Row="1" Grid.Column="1" Source="/SkinImages/ImgCarousel/CM_Carousel.gif" Width="500" Height="389" HorizontalAlignment="Center" VerticalAlignment="Center">
                -->
                <!--<MediaElement.Effect>
                        <DropShadowEffect Color="#FFD3D3D3" Direction="-50" ShadowDepth="4" Opacity="0.9" />
                    </MediaElement.Effect>-->
                <!--
                </MediaElement >-->
                <Grid
                    Grid.Row="1"
                    Grid.Column="1"
                    ClipToBounds="True">
                    <StackPanel
                        x:Name="SplCarouse"
                        Margin="0"
                        HorizontalAlignment="Left"
                        Orientation="Horizontal">
                        <Image x:Name="ImgCarouse1" Source="/SkinImages/ImgCarousel/CM_Carousel_1.png" />
                        <Image Source="/SkinImages/ImgCarousel/CM_Carousel_2.png" />
                        <Image Source="/SkinImages/ImgCarousel/CM_Carousel_3.png" />
                        <Image Source="/SkinImages/ImgCarousel/CM_Carousel_1.png" />
                    </StackPanel>
                </Grid>
                <Grid
                    Grid.Row="1"
                    Grid.Column="0"
                    Background="#FF4B95FF" />
                <Grid
                    Grid.Row="1"
                    Grid.Column="2"
                    Background="#FF4B95FF" />
            </Grid>
            <!--  创建  -->
            <Grid Grid.Column="1">
                <Border
                    Margin="10,31,30,30"
                    Background="White"
                    CornerRadius="15">
                    <Grid>
                        <Image
                            Width="65"
                            HorizontalAlignment="Right"
                            VerticalAlignment="Top"
                            Source="/SkinImages/ImgCarousel/CM_RightDown.png" />
                        <!--  创建内页 375  -->
                        <Grid Margin="20,0">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="80" />
                                <RowDefinition Height="80*" />
                                <RowDefinition Height="80*" />
                                <RowDefinition Height="80" />
                                <RowDefinition Height="30" />
                            </Grid.RowDefinitions>
                            <Grid Grid.Row="0">
                                <Label
                                    Margin="0,42,0,0"
                                    HorizontalAlignment="Left"
                                    VerticalAlignment="Top"
                                    Content="创建"
                                    FontSize="21"
                                    Foreground="#3F6FFF" />
                            </Grid>
                            <!--  讲解名称  -->
                            <Grid Grid.Row="1">
                                <StackPanel VerticalAlignment="Center">
                                    <Label
                                        Content="讲解名称:"
                                        FontSize="12"
                                        Foreground="#FF666666" />
                                    <TextBox
                                        x:Name="txbExplainName"
                                        Margin="5,5"
                                        BorderBrush="{x:Null}"
                                        BorderThickness="0"
                                        FontSize="14"
                                        Foreground="#FF999999"
                                        Text="微课1" />
                                    <Label Height="1.5" Background="#3F6FFF" />
                                </StackPanel>
                            </Grid>
                            <!--  存放路径  -->
                            <Grid Grid.Row="2">

                                <StackPanel VerticalAlignment="Center">
                                    <Label
                                        Content="存放路径:"
                                        FontSize="12"
                                        Foreground="#FF666666" />
                                    <Grid>
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="150" />
                                            <ColumnDefinition Width="45" />
                                        </Grid.ColumnDefinitions>
                                        <TextBox
                                            x:Name="txbStoragePath"
                                            Grid.Column="0"
                                            Margin="5,5"
                                            BorderBrush="{x:Null}"
                                            BorderThickness="0"
                                            FontSize="14"
                                            Foreground="#FF999999"
                                            Text="D:\" />
                                        <Button
                                            x:Name="btnBrowse"
                                            Grid.Column="1"
                                            Margin="0,5,0,5"
                                            Padding="4"
                                            Background="#F1F2F8"
                                            BorderBrush="#E1E1E1"
                                            BorderThickness="1"
                                            Click="BtnBrowse_Click"
                                            Content="浏览"
                                            Cursor="Hand"
                                            FontSize="12"
                                            Foreground="#333333" />
                                    </Grid>
                                    <Label Height="1.5" Background="#3F6FFF" />
                                </StackPanel>
                            </Grid>
                            <!--  按钮  -->
                            <Grid Grid.Row="3">
                                <Label
                                    x:Name="LblCreate"
                                    HorizontalAlignment="Right"
                                    Content="创建微课中..."
                                    FontSize="12"
                                    Foreground="#FF999999"
                                    Visibility="Hidden" />
                                <Button
                                    x:Name="BtnStart"
                                    Grid.Row="3"
                                    Grid.ColumnSpan="2"
                                    Width="195"
                                    Height="40"
                                    Margin="0,0,0,0"
                                    HorizontalAlignment="Center"
                                    VerticalAlignment="Center"
                                    HorizontalContentAlignment="Center"
                                    Click="BtnStart_Click"
                                    Content="开始"
                                    Cursor="Hand"
                                    FontSize="18"
                                    FontWeight="Bold"
                                    Foreground="#FFFFFF"
                                    IsDefault="True">
                                    <Button.Template>
                                        <ControlTemplate TargetType="{x:Type Button}">
                                            <Border
                                                BorderBrush="{TemplateBinding Control.BorderBrush}"
                                                BorderThickness="1"
                                                CornerRadius="20">
                                                <Border.Background>#3F6FFF</Border.Background>
                                                <ContentPresenter
                                                    HorizontalAlignment="Center"
                                                    VerticalAlignment="Center"
                                                    Content="{TemplateBinding ContentControl.Content}" />
                                            </Border>
                                        </ControlTemplate>
                                    </Button.Template>
                                </Button>
                            </Grid>

                            <Grid Grid.Row="4">
                                <Label
                                    Name="versionLabel"
                                    HorizontalAlignment="Center"
                                    Content="版本号："
                                    Foreground="#666666" />
                            </Grid>
                        </Grid>
                    </Grid>
                </Border>
            </Grid>
            <Button
                x:Name="btnDown"
                Grid.Column="1"
                Padding="5,0"
                HorizontalAlignment="Right"
                VerticalAlignment="Top"
                Click="BtnDown_Click"
                Content="×"
                Cursor="Hand"
                FontSize="25"
                Foreground="#FFFFFF" />
        </Grid>
        <Grid Visibility="Collapsed">
            <!--  分4行  -->
            <Grid.RowDefinitions>
                <RowDefinition Height="45" />
                <RowDefinition Height="110" />
                <RowDefinition Height="70" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <!--  第一行 标题 FFE9E9E9  FF2D8CF0  -->
            <Grid
                x:Name="GridTitle"
                Grid.Row="0"
                Margin="-1,0"
                Background="#FF38ADFF"
                MouseLeftButtonDown="Window_MouseLeftButtonDown"
                Visibility="Visible">
                <TextBlock
                    Padding="10,13,0,0"
                    FontSize="16"
                    Foreground="#FFFFFF"
                    Text="创建微课" />
                <!--<Button  Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" VerticalAlignment="Top" Foreground="#FFFFFF" FontSize="30" Padding="10,2,10,0" HorizontalAlignment="Right"  Click="BtnDown_Click" />-->
            </Grid>
            <Grid
                x:Name="GridTitle_Black"
                Grid.Row="0"
                Margin="0,0"
                Background="#FFE9E9E9"
                MouseLeftButtonDown="Window_MouseLeftButtonDown"
                Visibility="Collapsed">
                <TextBlock
                    Padding="10,13,0,0"
                    FontSize="16"
                    Foreground="#FF333333"
                    Text="创建微课" />
                <Button
                    x:Name="btnDown_Black"
                    Grid.Row="0"
                    Padding="10,2,10,0"
                    HorizontalAlignment="Right"
                    VerticalAlignment="Top"
                    Click="BtnDown_Click"
                    Content="×"
                    Cursor="Hand"
                    FontSize="30"
                    Foreground="#FF333333" />
            </Grid>
            <!--  第二行 讲解名称  -->
            <!--  第三行 存放路径  -->
        </Grid>
    </Grid>
</Window>