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

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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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" xmlns:Views="clr-namespace:XHWK.WKTool.Helpers"
  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. <Grid x:Name="GridTitle" Visibility="Visible" Grid.Row="0" Margin="-1,0" Background="#2D8CF0" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  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. <Grid x:Name="GridTitle_Black" Visibility="Collapsed" Grid.Row="0" Margin="0,0" Background="#FFE9E9E9" MouseLeftButtonDown="Window_MouseLeftButtonDown">
  30. <TextBlock Text="上传" Foreground="#FF333333" FontSize="16" Padding="10,13,0,0"/>
  31. <Button Cursor="Hand" Grid.Row="0" x:Name="btnDown_Black" Content="×" Foreground="#FF333333" FontSize="25" Padding="10,0,10,0" HorizontalAlignment="Right" Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}" Click="BtnDown_Click"/>
  32. </Grid>
  33. <!--第三行 教材-->
  34. <ComboBox Cursor="Hand"
  35. x:Name="book_list"
  36. Grid.Row="2"
  37. Height="50"
  38. Width="400"
  39. Margin="0,0,0,0"
  40. Padding="10,0,0,0"
  41. VerticalContentAlignment="Center"
  42. DisplayMemberPath="Value"
  43. FontSize="18"
  44. ItemsSource="{Binding bookList}"
  45. SelectedValuePath="Key"
  46. SelectionChanged="toolbar_list_SelectionChanged" BorderBrush="#FFCDD6E0" Foreground="Black" Background="White"
  47. >
  48. <ComboBox.Resources>
  49. <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="White" />
  50. <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Gray" />
  51. </ComboBox.Resources>
  52. </ComboBox>
  53. <!--章节-->
  54. <ComboBox Cursor="Hand"
  55. x:Name="cmbTeachingMaterial"
  56. Grid.Row="3"
  57. Height="50"
  58. Width="400"
  59. Padding="10,0,0,0"
  60. VerticalContentAlignment="Center"
  61. DisplayMemberPath="Value"
  62. FontSize="18"
  63. Foreground="Black"
  64. ItemsSource="{Binding zhangjieList}"
  65. SelectedValuePath="Key" BorderBrush="#FFCDD6E0" >
  66. <ComboBox.Resources>
  67. <SolidColorBrush x:Key="{x:Static SystemColors.WindowBrushKey}" Color="White" />
  68. <!--<SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="Green" />-->
  69. </ComboBox.Resources>
  70. </ComboBox>
  71. <!--第四行 开始按钮-->
  72. <Button Cursor="Hand" Grid.Row="4" IsDefault="True" 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">
  73. <Button.Template>
  74. <ControlTemplate TargetType="{x:Type Button}">
  75. <Border
  76. BorderBrush="{TemplateBinding Control.BorderBrush}"
  77. BorderThickness="1"
  78. CornerRadius="2">
  79. <Border.Background>#38ADFF</Border.Background>
  80. <ContentPresenter
  81. HorizontalAlignment="Center"
  82. VerticalAlignment="Center"
  83. Content="{TemplateBinding ContentControl.Content}" />
  84. </Border>
  85. </ControlTemplate>
  86. </Button.Template>
  87. </Button>
  88. <Views:ZJClippingBorder Grid.Row="0" Grid.RowSpan="2" x:Name="tip_outer" Margin="0" Background="#FFE6EAF0" CornerRadius="4" Visibility="Collapsed">
  89. <Grid>
  90. <Label Content="上传中..." HorizontalAlignment="Center" Margin="0,7,0,0" Height="35" VerticalAlignment="Top" FontSize="20"></Label>
  91. <ProgressBar BorderBrush="#4597FF"
  92. Foreground="#4597FF"
  93. Grid.Row="0"
  94. x:Name="pgbProcess"
  95. Height="20"
  96. Margin="50,20,50,0"
  97. Visibility="Visible" />
  98. <Label Grid.Row="0"
  99. HorizontalAlignment="Center" Width="60"
  100. x:Name="lbProcess"
  101. Height="30"
  102. Margin="0,20,0,0"
  103. FontSize="16"
  104. Content=""
  105. Foreground="White"
  106. Visibility="Visible" />
  107. </Grid>
  108. </Views:ZJClippingBorder>
  109. </Grid>
  110. </Viewbox>
  111. </Window>