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

UploadWindow.xaml 6.4KB

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