|
@@ -7,70 +7,51 @@
|
7
|
7
|
mc:Ignorable="d"
|
8
|
8
|
Title="星火微课" Height="346" Width="457" AllowsTransparency="True"
|
9
|
9
|
WindowStartupLocation="CenterScreen"
|
10
|
|
- WindowStyle="None" Loaded="Window_Loaded" Margin="0" BorderThickness="5,5,5,5">
|
|
10
|
+ WindowStyle="None" Loaded="Window_Loaded" Margin="0" BorderThickness="7">
|
11
|
11
|
<Window.Effect>
|
12
|
|
- <DropShadowEffect BlurRadius="5" Color="#FF060606" Direction="80" ShadowDepth="0"/>
|
|
12
|
+ <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
|
13
|
13
|
</Window.Effect>
|
14
|
|
- <Viewbox>
|
15
|
|
- <Grid Height="341" Width="454" >
|
16
|
|
- <!--分4行-->
|
17
|
|
- <Grid.RowDefinitions>
|
18
|
|
- <RowDefinition Height="45"/>
|
19
|
|
- <RowDefinition Height="110"/>
|
20
|
|
- <RowDefinition Height="80"/>
|
21
|
|
- <RowDefinition Height="*"/>
|
22
|
|
- </Grid.RowDefinitions>
|
23
|
|
- <!--第一行 标题-->
|
24
|
|
- <Border Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown">
|
25
|
|
- <Grid>
|
26
|
|
- <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
|
27
|
|
- <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"/>
|
28
|
|
- </Grid>
|
|
14
|
+ <Grid>
|
|
15
|
+ <!--分4行-->
|
|
16
|
+ <Grid.RowDefinitions>
|
|
17
|
+ <RowDefinition Height="45"/>
|
|
18
|
+ <RowDefinition Height="110"/>
|
|
19
|
+ <RowDefinition Height="80"/>
|
|
20
|
+ <RowDefinition Height="*"/>
|
|
21
|
+ </Grid.RowDefinitions>
|
|
22
|
+ <!--第一行 标题-->
|
|
23
|
+ <Border Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown" Grid.ColumnSpan="2">
|
|
24
|
+ <Grid>
|
|
25
|
+ <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
|
|
26
|
+ <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"/>
|
|
27
|
+ </Grid>
|
|
28
|
+ </Border>
|
|
29
|
+ <!--第二行 讲解名称-->
|
|
30
|
+ <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,60,0,0" Grid.ColumnSpan="2">
|
|
31
|
+ <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
|
|
32
|
+ <TextBlock Text="讲解名称" FontSize="18" Padding="2,15,10,0"/>
|
|
33
|
+ <!--输入框-->
|
|
34
|
+ <Border Background="#CDD6E0" Width="321" Height="43" CornerRadius="3">
|
|
35
|
+ <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="319" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
|
29
|
36
|
</Border>
|
30
|
|
- <!--第二行 讲解名称-->
|
31
|
|
- <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,60,0,0">
|
32
|
|
- <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
|
33
|
|
- <TextBlock Text="讲解名称" FontSize="18" Padding="2,15,10,0"/>
|
34
|
|
- <!--输入框-->
|
35
|
|
- <Border Background="#CDD6E0" Width="321" Height="43" CornerRadius="3">
|
36
|
|
- <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="319" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
|
37
|
|
- </Border>
|
38
|
|
- </StackPanel>
|
39
|
|
- <!--第三行 存放路径-->
|
40
|
|
- <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,30,0,0">
|
41
|
|
- <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
|
42
|
|
- <TextBlock Text="存放路径" FontSize="18" Padding="2,15,10,0"/>
|
43
|
|
- <!--输入框-->
|
44
|
|
- <Border Background="#CDD6E0" Width="225" Height="43" CornerRadius="3">
|
45
|
|
- <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="223" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
|
46
|
|
- </Border>
|
47
|
|
- <!--浏览按钮-->
|
48
|
|
- <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
|
49
|
|
- <Button.Template>
|
50
|
|
- <ControlTemplate TargetType="{x:Type Button}">
|
51
|
|
- <Border
|
52
|
|
- BorderBrush="{TemplateBinding Control.BorderBrush}"
|
53
|
|
- BorderThickness="1"
|
54
|
|
- CornerRadius="2">
|
55
|
|
- <Border.Background>#CDD6E0</Border.Background>
|
56
|
|
- <ContentPresenter
|
57
|
|
- HorizontalAlignment="Center"
|
58
|
|
- VerticalAlignment="Center"
|
59
|
|
- Content="{TemplateBinding ContentControl.Content}" />
|
60
|
|
- </Border>
|
61
|
|
- </ControlTemplate>
|
62
|
|
- </Button.Template>
|
63
|
|
- </Button>
|
64
|
|
- </StackPanel>
|
65
|
|
- <!--第四行 开始按钮-->
|
66
|
|
- <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">
|
|
37
|
+ </StackPanel>
|
|
38
|
+ <!--第三行 存放路径-->
|
|
39
|
+ <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,30,0,0" Grid.ColumnSpan="2">
|
|
40
|
+ <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
|
|
41
|
+ <TextBlock Text="存放路径" FontSize="18" Padding="2,15,10,0"/>
|
|
42
|
+ <!--输入框-->
|
|
43
|
+ <Border Background="#CDD6E0" Width="225" Height="43" CornerRadius="3">
|
|
44
|
+ <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="223" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
|
|
45
|
+ </Border>
|
|
46
|
+ <!--浏览按钮-->
|
|
47
|
+ <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
|
67
|
48
|
<Button.Template>
|
68
|
49
|
<ControlTemplate TargetType="{x:Type Button}">
|
69
|
50
|
<Border
|
70
|
51
|
BorderBrush="{TemplateBinding Control.BorderBrush}"
|
71
|
52
|
BorderThickness="1"
|
72
|
53
|
CornerRadius="2">
|
73
|
|
- <Border.Background>#2D8CF0</Border.Background>
|
|
54
|
+ <Border.Background>#CDD6E0</Border.Background>
|
74
|
55
|
<ContentPresenter
|
75
|
56
|
HorizontalAlignment="Center"
|
76
|
57
|
VerticalAlignment="Center"
|
|
@@ -79,6 +60,23 @@
|
79
|
60
|
</ControlTemplate>
|
80
|
61
|
</Button.Template>
|
81
|
62
|
</Button>
|
82
|
|
- </Grid>
|
83
|
|
- </Viewbox>
|
|
63
|
+ </StackPanel>
|
|
64
|
+ <!--第四行 开始按钮-->
|
|
65
|
+ <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" Grid.ColumnSpan="2">
|
|
66
|
+ <Button.Template>
|
|
67
|
+ <ControlTemplate TargetType="{x:Type Button}">
|
|
68
|
+ <Border
|
|
69
|
+ BorderBrush="{TemplateBinding Control.BorderBrush}"
|
|
70
|
+ BorderThickness="1"
|
|
71
|
+ CornerRadius="2">
|
|
72
|
+ <Border.Background>#2D8CF0</Border.Background>
|
|
73
|
+ <ContentPresenter
|
|
74
|
+ HorizontalAlignment="Center"
|
|
75
|
+ VerticalAlignment="Center"
|
|
76
|
+ Content="{TemplateBinding ContentControl.Content}" />
|
|
77
|
+ </Border>
|
|
78
|
+ </ControlTemplate>
|
|
79
|
+ </Button.Template>
|
|
80
|
+ </Button>
|
|
81
|
+ </Grid>
|
84
|
82
|
</Window>
|