|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <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"
- xmlns:local="clr-namespace:XHWK.WKTool"
- mc:Ignorable="d"
- Title="星火微课" Height="341" Width="454" AllowsTransparency="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None">
- <Viewbox>
- <Grid Height="341" Width="454" >
- <!--分4行-->
- <Grid.RowDefinitions>
- <RowDefinition Height="45"/>
- <RowDefinition Height="110"/>
- <RowDefinition Height="80"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <!--第一行 标题-->
- <Border Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown">
- <Grid>
- <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
- <Button Cursor="Hand" Grid.Row="0" x:Name="btnDown" Content="×" Foreground="#FFFFFF" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
- </Grid>
- </Border>
- <!--第二行 讲解名称-->
- <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,60,0,0">
- <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
- <TextBlock Text="讲解名称" FontSize="18" Padding="2,15,10,0"/>
- <!--输入框-->
- <Border Background="#CDD6E0" Width="321" Height="43" CornerRadius="3">
- <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="319" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
- </Border>
- </StackPanel>
- <!--第三行 存放路径-->
- <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,30,0,0">
- <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
- <TextBlock Text="存放路径" FontSize="18" Padding="2,15,10,0"/>
- <!--输入框-->
- <Border Background="#CDD6E0" Width="225" Height="43" CornerRadius="3">
- <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="223" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
- </Border>
- <!--浏览按钮-->
- <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- BorderBrush="{TemplateBinding Control.BorderBrush}"
- BorderThickness="1"
- CornerRadius="2">
- <Border.Background>#CDD6E0</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </StackPanel>
- <!--第四行 开始按钮-->
- <Button Cursor="Hand" Grid.Row="3" x:Name="btnStart" Content="开始" FontSize="18" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="43" Margin="10,0,10,0" Click="BtnStart_Click">
- <Button.Template>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border
- BorderBrush="{TemplateBinding Control.BorderBrush}"
- BorderThickness="1"
- CornerRadius="2">
- <Border.Background>#2D8CF0</Border.Background>
- <ContentPresenter
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Content="{TemplateBinding ContentControl.Content}" />
- </Border>
- </ControlTemplate>
- </Button.Template>
- </Button>
- </Grid>
- </Viewbox>
- </Window>
|