星火微课系统客户端
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

CreateAMicroLessonWindow.xaml 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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="5,5,5,5">
  11. <Window.Effect>
  12. <DropShadowEffect BlurRadius="5" Color="#FF060606" Direction="80" ShadowDepth="0"/>
  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>
  29. </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">
  67. <Button.Template>
  68. <ControlTemplate TargetType="{x:Type Button}">
  69. <Border
  70. BorderBrush="{TemplateBinding Control.BorderBrush}"
  71. BorderThickness="1"
  72. CornerRadius="2">
  73. <Border.Background>#2D8CF0</Border.Background>
  74. <ContentPresenter
  75. HorizontalAlignment="Center"
  76. VerticalAlignment="Center"
  77. Content="{TemplateBinding ContentControl.Content}" />
  78. </Border>
  79. </ControlTemplate>
  80. </Button.Template>
  81. </Button>
  82. </Grid>
  83. </Viewbox>
  84. </Window>