星火微课系统客户端
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CreateAMicroLessonWindow.xaml 4.8KB

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