星火微课系统客户端
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

UploadWindow.xaml 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <Window
  2. x:Class="XHWK.WKTool.UploadWindow"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:Views="clr-namespace:XHWK.WKTool.Helpers"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:XHWK.WKTool"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. Title="UploadWindow"
  10. Width="457"
  11. Height="346"
  12. Margin="0"
  13. AllowsTransparency="True"
  14. BorderBrush="#eeeeee"
  15. BorderThickness="1"
  16. Loaded="Window_Loaded"
  17. WindowStartupLocation="CenterScreen"
  18. WindowStyle="None"
  19. mc:Ignorable="d">
  20. <Grid>
  21. <!-- 分4行 -->
  22. <Grid.RowDefinitions>
  23. <RowDefinition Height="45" />
  24. <RowDefinition Height="30" />
  25. <RowDefinition Height="90" />
  26. <RowDefinition Height="90" />
  27. <RowDefinition Height="*" />
  28. </Grid.RowDefinitions>
  29. <!-- 第一行 标题 -->
  30. <Grid
  31. x:Name="GridTitle"
  32. Grid.Row="0"
  33. Background="#3f6fff"
  34. MouseLeftButtonDown="Window_MouseLeftButtonDown"
  35. Visibility="Visible">
  36. <TextBlock
  37. Padding="10,13,0,0"
  38. FontSize="16"
  39. Foreground="#FFFFFF"
  40. Text="上传" />
  41. <Button
  42. x:Name="btnDown"
  43. Grid.Row="0"
  44. Width="45"
  45. Height="45"
  46. HorizontalAlignment="Right"
  47. Click="BtnDown_Click"
  48. Content="×"
  49. Cursor="Hand"
  50. FontSize="25"
  51. Foreground="#FFFFFF"
  52. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
  53. </Grid>
  54. <Grid
  55. x:Name="GridTitle_Black"
  56. Grid.Row="0"
  57. Margin="0,0"
  58. Background="#FFE9E9E9"
  59. MouseLeftButtonDown="Window_MouseLeftButtonDown"
  60. Visibility="Collapsed">
  61. <TextBlock
  62. Padding="10,13,0,0"
  63. FontSize="16"
  64. Foreground="#FF333333"
  65. Text="上传" />
  66. <Button
  67. x:Name="btnDown_Black"
  68. Grid.Row="0"
  69. Padding="10,0,10,0"
  70. HorizontalAlignment="Right"
  71. Click="BtnDown_Click"
  72. Content="×"
  73. Cursor="Hand"
  74. FontSize="25"
  75. Foreground="#FF333333"
  76. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" />
  77. </Grid>
  78. <!-- 第三行 教材 -->
  79. <ComboBox
  80. x:Name="book_list"
  81. Grid.Row="2"
  82. Width="400"
  83. Height="50"
  84. Margin="0,0,0,0"
  85. Padding="10,0,0,0"
  86. VerticalContentAlignment="Center"
  87. Background="White"
  88. BorderBrush="#FFCDD6E0"
  89. Cursor="Hand"
  90. DisplayMemberPath="Value"
  91. FontSize="16"
  92. Foreground="Black"
  93. ItemsSource="{Binding bookList}"
  94. SelectedValuePath="Key"
  95. SelectionChanged="toolbar_list_SelectionChanged">
  96. <ComboBox.Resources>
  97. <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="White" />
  98. <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Gray" />
  99. </ComboBox.Resources>
  100. </ComboBox>
  101. <!-- 章节 -->
  102. <ComboBox
  103. x:Name="cmbTeachingMaterial"
  104. Grid.Row="3"
  105. Width="400"
  106. Height="50"
  107. Padding="10,0,0,0"
  108. VerticalContentAlignment="Center"
  109. BorderBrush="#FFCDD6E0"
  110. Cursor="Hand"
  111. DisplayMemberPath="Value"
  112. FontSize="16"
  113. Foreground="Black"
  114. ItemsSource="{Binding zhangjieList}"
  115. SelectedValuePath="Key">
  116. <ComboBox.Resources>
  117. <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="White" />
  118. <!--<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Green" />-->
  119. </ComboBox.Resources>
  120. </ComboBox>
  121. <!-- 第四行 开始按钮 -->
  122. <Button
  123. x:Name="btnStart"
  124. Grid.Row="4"
  125. Width="400"
  126. Height="42"
  127. Margin="10,0,10,0"
  128. Click="BtnStart_Click"
  129. Content="确定"
  130. Cursor="Hand"
  131. FontSize="18"
  132. Foreground="#FFFFFF"
  133. IsDefault="True"
  134. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  135. <Button.Template>
  136. <ControlTemplate TargetType="{x:Type Button}">
  137. <Border
  138. BorderBrush="{TemplateBinding Control.BorderBrush}"
  139. BorderThickness="1"
  140. CornerRadius="21">
  141. <Border.Background>#3f6fff</Border.Background>
  142. <ContentPresenter
  143. HorizontalAlignment="Center"
  144. VerticalAlignment="Center"
  145. Content="{TemplateBinding ContentControl.Content}" />
  146. </Border>
  147. </ControlTemplate>
  148. </Button.Template>
  149. </Button>
  150. <Views:ZJClippingBorder
  151. x:Name="tip_outer"
  152. Grid.Row="0"
  153. Grid.RowSpan="2"
  154. Margin="0"
  155. Background="#FFE6EAF0"
  156. CornerRadius="4"
  157. Visibility="Collapsed">
  158. <Grid>
  159. <Label
  160. Height="35"
  161. Margin="0,7,0,0"
  162. HorizontalAlignment="Center"
  163. VerticalAlignment="Top"
  164. Content="上传中..."
  165. FontSize="20" />
  166. <ProgressBar
  167. x:Name="pgbProcess"
  168. Grid.Row="0"
  169. Height="20"
  170. Margin="50,20,50,0"
  171. BorderBrush="#4597FF"
  172. Foreground="#4597FF"
  173. Visibility="Visible" />
  174. <Label
  175. x:Name="lbProcess"
  176. Grid.Row="0"
  177. Width="60"
  178. Height="30"
  179. Margin="0,20,0,0"
  180. HorizontalAlignment="Center"
  181. Content=""
  182. FontSize="16"
  183. Foreground="White"
  184. Visibility="Visible" />
  185. </Grid>
  186. </Views:ZJClippingBorder>
  187. </Grid>
  188. </Window>