星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CreateAMicroLessonWindow.xaml 4.8KB

4 年之前
4 年之前
4 年之前
4 年之前
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <Window x:Class="XHWK.WKTool.CreateAMicroLessonWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:XHWK.WKTool"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="341" Width="454" AllowsTransparency="True"
  9. ShowInTaskbar="False"
  10. WindowStartupLocation="CenterOwner"
  11. WindowStyle="None">
  12. <Viewbox>
  13. <Grid Height="341" Width="454" >
  14. <!--分4行-->
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="45"/>
  17. <RowDefinition Height="110"/>
  18. <RowDefinition Height="80"/>
  19. <RowDefinition Height="*"/>
  20. </Grid.RowDefinitions>
  21. <!--第一行 标题-->
  22. <Border Grid.Row="0" Background="#2D8CF0">
  23. <Grid>
  24. <TextBlock Text="创建微课" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
  25. <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"/>
  26. </Grid>
  27. </Border>
  28. <!--第二行 讲解名称-->
  29. <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,60,0,0">
  30. <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
  31. <TextBlock Text="讲解名称" FontSize="18" Padding="2,15,10,0"/>
  32. <!--输入框-->
  33. <Border Background="#CDD6E0" Width="321" Height="43" CornerRadius="3">
  34. <TextBox x:Name="txbExplainName" Text="微课1" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="319" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
  35. </Border>
  36. </StackPanel>
  37. <!--第三行 存放路径-->
  38. <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,30,0,0">
  39. <Label Content="*" FontSize="18" Padding="0,20,0,0" Foreground="#FF0000"/>
  40. <TextBlock Text="存放路径" FontSize="18" Padding="2,15,10,0"/>
  41. <!--输入框-->
  42. <Border Background="#CDD6E0" Width="225" Height="43" CornerRadius="3">
  43. <TextBox x:Name="txbStoragePath" Text="D:\" FontSize="16" Foreground="#333333" Padding="5,12,2,2" Width="223" Height="42" BorderBrush="{x:Null}" BorderThickness="0"/>
  44. </Border>
  45. <!--浏览按钮-->
  46. <Button Cursor="Hand" x:Name="btnBrowse" Content="浏览" FontSize="18" Width="80" Height="43" Margin="18,0,0,0" Click="BtnBrowse_Click">
  47. <Button.Template>
  48. <ControlTemplate TargetType="{x:Type Button}">
  49. <Border
  50. BorderBrush="{TemplateBinding Control.BorderBrush}"
  51. BorderThickness="1"
  52. CornerRadius="2">
  53. <Border.Background>#CDD6E0</Border.Background>
  54. <ContentPresenter
  55. HorizontalAlignment="Center"
  56. VerticalAlignment="Center"
  57. Content="{TemplateBinding ContentControl.Content}" />
  58. </Border>
  59. </ControlTemplate>
  60. </Button.Template>
  61. </Button>
  62. </StackPanel>
  63. <!--第四行 开始按钮-->
  64. <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">
  65. <Button.Template>
  66. <ControlTemplate TargetType="{x:Type Button}">
  67. <Border
  68. BorderBrush="{TemplateBinding Control.BorderBrush}"
  69. BorderThickness="1"
  70. CornerRadius="2">
  71. <Border.Background>#2D8CF0</Border.Background>
  72. <ContentPresenter
  73. HorizontalAlignment="Center"
  74. VerticalAlignment="Center"
  75. Content="{TemplateBinding ContentControl.Content}" />
  76. </Border>
  77. </ControlTemplate>
  78. </Button.Template>
  79. </Button>
  80. </Grid>
  81. </Viewbox>
  82. </Window>