星火微课系统客户端
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

UploadWindow.xaml 5.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. <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" 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">
  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. <Views:ZJClippingBorder Grid.Row="0" Grid.RowSpan="2" x:Name="tip_outer" Margin="0" Background="#FFE6EAF0" CornerRadius="4" Visibility="Collapsed">
  87. <Grid>
  88. <Label Content="上传中..." HorizontalAlignment="Center" Margin="0,7,0,0" Height="35" VerticalAlignment="Top" FontSize="20"></Label>
  89. <ProgressBar BorderBrush="#4597FF"
  90. Foreground="#4597FF"
  91. Grid.Row="0"
  92. x:Name="pgbProcess"
  93. Height="20"
  94. Margin="50,20,50,0"
  95. Visibility="Visible" />
  96. <Label Grid.Row="0"
  97. HorizontalAlignment="Center" Width="60"
  98. x:Name="lbProcess"
  99. Height="30"
  100. Margin="0,20,0,0"
  101. FontSize="16"
  102. Content=""
  103. Foreground="White"
  104. Visibility="Visible" />
  105. </Grid>
  106. </Views:ZJClippingBorder>
  107. </Grid>
  108. </Viewbox>
  109. </Window>