星火微课系统客户端
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

UploadWindow.xaml 4.7KB

vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
vor 4 Jahren
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <Window x:Class="XHWK.WKTool.UploadWindow"
  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="UploadWindow" 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. <Viewbox>
  15. <Grid Height="341" Width="454" >
  16. <!--分4行-->
  17. <Grid.RowDefinitions>
  18. <RowDefinition Height="45"/>
  19. <RowDefinition Height="30"/>
  20. <RowDefinition Height="90"/>
  21. <RowDefinition Height="90"/>
  22. <RowDefinition Height="*"/>
  23. </Grid.RowDefinitions>
  24. <!--第一行 标题-->
  25. <Border Grid.Row="0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  26. <Grid>
  27. <TextBlock Text="上传" Foreground="#FFFFFF" FontSize="16" Padding="10,13,0,0"/>
  28. <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"/>
  29. </Grid>
  30. </Border>
  31. <!--第三行 教材-->
  32. <ComboBox Cursor="Hand"
  33. x:Name="book_list"
  34. Grid.Row="2"
  35. Height="50"
  36. Width="400"
  37. Margin="0,0,0,0"
  38. Padding="10,0,0,0"
  39. VerticalContentAlignment="Center"
  40. DisplayMemberPath="Value"
  41. FontSize="18"
  42. ItemsSource="{Binding bookList}"
  43. SelectedValuePath="Key"
  44. SelectionChanged="toolbar_list_SelectionChanged" BorderBrush="#FFCDD6E0" Foreground="Black" Background="White"
  45. >
  46. <ComboBox.Resources>
  47. <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="White" />
  48. <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Gray" />
  49. </ComboBox.Resources>
  50. </ComboBox>
  51. <!--章节-->
  52. <ComboBox Cursor="Hand"
  53. x:Name="cmbTeachingMaterial"
  54. Grid.Row="3"
  55. Height="50"
  56. Width="400"
  57. Padding="10,0,0,0"
  58. VerticalContentAlignment="Center"
  59. DisplayMemberPath="Value"
  60. FontSize="18"
  61. Foreground="Black"
  62. ItemsSource="{Binding zhangjieList}"
  63. SelectedValuePath="Key" BorderBrush="#FFCDD6E0" >
  64. <ComboBox.Resources>
  65. <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="White" />
  66. <!--<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Green" />-->
  67. </ComboBox.Resources>
  68. </ComboBox>
  69. <!--第四行 开始按钮-->
  70. <Button Cursor="Hand" Grid.Row="4" 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">
  71. <Button.Template>
  72. <ControlTemplate TargetType="{x:Type Button}">
  73. <Border
  74. BorderBrush="{TemplateBinding Control.BorderBrush}"
  75. BorderThickness="1"
  76. CornerRadius="2">
  77. <Border.Background>#2D8CF0</Border.Background>
  78. <ContentPresenter
  79. HorizontalAlignment="Center"
  80. VerticalAlignment="Center"
  81. Content="{TemplateBinding ContentControl.Content}" />
  82. </Border>
  83. </ControlTemplate>
  84. </Button.Template>
  85. </Button>
  86. </Grid>
  87. </Viewbox>
  88. </Window>