星火微课系统客户端
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 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 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="星火微课" Height="346" Width="457" AllowsTransparency="True"
  9. WindowStartupLocation="CenterScreen"
  10. WindowStyle="None" Loaded="Window_Loaded" Margin="0" BorderThickness="7">
  11. <Window.Effect>
  12. <DropShadowEffect BlurRadius="10" Color="#bababa" Direction="80" ShadowDepth="0"/>
  13. </Window.Effect>
  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="28" 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,40,0,1" Grid.ColumnSpan="2">
  31. <Label Content="*" FontSize="18" Padding="0,27,0,0" Foreground="#FF0000"/>
  32. <TextBlock Text="讲解名称" FontSize="18" Padding="2,23,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="41" BorderBrush="{x:Null}" BorderThickness="0"/>
  36. </Border>
  37. </StackPanel>
  38. <!--第三行 存放路径-->
  39. <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,10,0,1" Grid.ColumnSpan="2">
  40. <Label Content="*" FontSize="18" Padding="0,27,0,0" Foreground="#FF0000"/>
  41. <TextBlock Text="存放路径" FontSize="18" Padding="2,23,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="41" 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">
  48. <Button.Template>
  49. <ControlTemplate TargetType="{x:Type Button}">
  50. <Border
  51. BorderBrush="{TemplateBinding Control.BorderBrush}"
  52. BorderThickness="1"
  53. CornerRadius="2">
  54. <Border.Background>#CDD6E0</Border.Background>
  55. <ContentPresenter
  56. HorizontalAlignment="Center"
  57. VerticalAlignment="Center"
  58. Content="{TemplateBinding ContentControl.Content}" />
  59. </Border>
  60. </ControlTemplate>
  61. </Button.Template>
  62. </Button>
  63. </StackPanel>
  64. <!--第四行 开始按钮-->
  65. <Button Cursor="Hand" Grid.Row="3" x:Name="btnStart" Content="开始" FontSize="18" FontWeight="Bold" Foreground="#FFFFFF" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Width="418" Height="48" 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="3">
  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>
  82. </Window>