星火微课系统客户端
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.

пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
пре 4 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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="80"/>
  20. <RowDefinition Height="60"/>
  21. <RowDefinition Height="60"/>
  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="30"
  36. Width="300"
  37. Margin="0,0,0,0"
  38. Padding="10,0,0,0"
  39. VerticalContentAlignment="Center"
  40. DisplayMemberPath="Value"
  41. FontSize="14"
  42. ItemsSource="{Binding bookList}"
  43. SelectedValuePath="Key"
  44. SelectionChanged="toolbar_list_SelectionChanged"
  45. >
  46. <ComboBox.Resources>
  47. <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="WhiteSmoke" />
  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="30"
  56. Width="300"
  57. Padding="10,0,0,0"
  58. VerticalContentAlignment="Center"
  59. Background="White"
  60. DisplayMemberPath="Value"
  61. FontSize="14"
  62. Foreground="Black"
  63. ItemsSource="{Binding zhangjieList}"
  64. SelectedValuePath="Key" />
  65. <!--第四行 开始按钮-->
  66. <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">
  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>