星火微课系统客户端
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

ProductVerification.xaml 4.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <Window
  2. x:Class="XHWK.WKTool.ProductVerification"
  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="ProductVerification"
  10. Width="300"
  11. Height="230"
  12. AllowsTransparency="True"
  13. Background="Transparent"
  14. BorderThickness="7"
  15. ShowInTaskbar="False"
  16. WindowStartupLocation="CenterOwner"
  17. WindowStyle="None"
  18. mc:Ignorable="d">
  19. <Window.Effect>
  20. <DropShadowEffect
  21. BlurRadius="10"
  22. Direction="80"
  23. ShadowDepth="0"
  24. Color="#bababa" />
  25. </Window.Effect>
  26. <Window.Resources>
  27. <Style x:Key="oiliu" TargetType="ListBoxItem">
  28. <!-- 设置控件模板 -->
  29. <Setter Property="Template">
  30. <Setter.Value>
  31. <ControlTemplate TargetType="ListBoxItem">
  32. <Border
  33. Margin="4,0,0,0"
  34. Padding="0"
  35. Background="{TemplateBinding Background}">
  36. <ContentPresenter
  37. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  38. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  39. TextBlock.Foreground="{TemplateBinding Foreground}" />
  40. </Border>
  41. </ControlTemplate>
  42. </Setter.Value>
  43. </Setter>
  44. </Style>
  45. <DataTemplate x:Key="UserTpl">
  46. <StackPanel
  47. Width="70.5"
  48. Height="auto"
  49. Background="Transparent">
  50. <TextBlock
  51. Padding="0,12,0,0"
  52. HorizontalAlignment="Left"
  53. FontSize="20"
  54. Foreground="#3C525B"
  55. Text="{Binding username}" />
  56. </StackPanel>
  57. </DataTemplate>
  58. </Window.Resources>
  59. <Views:ZJClippingBorder Background="White" CornerRadius="10,10,10,10">
  60. <Grid Margin="0,0,0,0">
  61. <Grid.RowDefinitions>
  62. <RowDefinition Height="50" />
  63. <RowDefinition Height="*" />
  64. <RowDefinition Height="75" />
  65. </Grid.RowDefinitions>
  66. <!-- 头部 -->
  67. <Grid
  68. Grid.Row="0"
  69. Height="50"
  70. Background="#4597FF">
  71. <TextBlock
  72. x:Name="title_tb"
  73. Grid.Row="0"
  74. Margin="15,0,0,0"
  75. HorizontalAlignment="Left"
  76. VerticalAlignment="Center"
  77. FontSize="22"
  78. Foreground="White"
  79. Text="产品验证" />
  80. <Button
  81. Grid.Column="0"
  82. Width="46"
  83. Height="46"
  84. Margin="0,0,10,0"
  85. HorizontalAlignment="Right"
  86. VerticalAlignment="Center"
  87. Background="White"
  88. Click="close_click"
  89. Cursor="Hand"
  90. Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}">
  91. <Button.Template>
  92. <ControlTemplate TargetType="{x:Type Button}">
  93. <Border
  94. BorderBrush="{TemplateBinding Control.BorderBrush}"
  95. BorderThickness="0"
  96. CornerRadius="20">
  97. <ContentPresenter
  98. HorizontalAlignment="Center"
  99. VerticalAlignment="Center"
  100. Content="{TemplateBinding ContentControl.Content}" />
  101. </Border>
  102. </ControlTemplate>
  103. </Button.Template>
  104. <Image
  105. Width="40"
  106. Height="40"
  107. HorizontalAlignment="Center"
  108. VerticalAlignment="Center"
  109. Source="Images/rollCall_1.png"
  110. Stretch="Fill" />
  111. </Button>
  112. </Grid>
  113. <Grid Grid.Row="1" Margin="10,20,0,0">
  114. <StackPanel Height="30" Orientation="Horizontal">
  115. <TextBlock FontSize="20" Text="产品验证中。。。。" />
  116. </StackPanel>
  117. </Grid>
  118. </Grid>
  119. </Views:ZJClippingBorder>
  120. </Window>