星火直播PC
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

4 роки тому
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. <Window x:Class="XHZB.Desktop.PracticeWindow"
  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:XHZB.Desktop" xmlns:Views="clr-namespace:Common.ZB;assembly=Common"
  7. Title="PracticeWindow" Width="1280"
  8. Height="800"
  9. Activated="Window_Activated"
  10. AllowsTransparency="True"
  11. Background="Transparent"
  12. Closed="Window_Closed"
  13. Deactivated="Window_Deactivated"
  14. Opacity="1"
  15. ShowInTaskbar="False"
  16. WindowStyle="None"
  17. mc:Ignorable="d">
  18. <Window.Resources>
  19. <DataTemplate x:Key="BMenuTemp">
  20. <Button
  21. x:Name="toolbar_item"
  22. Width="60"
  23. Height="60"
  24. BorderThickness="0"
  25. Click="menu_item_Click"
  26. Cursor="Hand">
  27. <Button.Content>
  28. <StackPanel Width="Auto" Background="Transparent">
  29. <Image
  30. Width="23"
  31. HorizontalAlignment="Center"
  32. Source="{Binding Pic}" />
  33. <TextBlock
  34. x:Name="menu_name"
  35. Margin="0,2,0,0"
  36. HorizontalAlignment="Center"
  37. Text="{Binding Name}">
  38. <TextBlock.Style>
  39. <Style TargetType="TextBlock">
  40. <Setter Property="Foreground" Value="#3C525B" />
  41. <Style.Triggers>
  42. <DataTrigger Binding="{Binding Selected}" Value="true">
  43. <Setter Property="Foreground" Value="#ffffff" />
  44. </DataTrigger>
  45. </Style.Triggers>
  46. </Style>
  47. </TextBlock.Style>
  48. </TextBlock>
  49. </StackPanel>
  50. </Button.Content>
  51. <Button.Style>
  52. <Style TargetType="Button">
  53. <Setter Property="Background" Value="Transparent" />
  54. <Setter Property="Template">
  55. <Setter.Value>
  56. <ControlTemplate TargetType="{x:Type Button}">
  57. <Border
  58. Background="{TemplateBinding Background}"
  59. BorderBrush="Black"
  60. BorderThickness="0">
  61. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
  62. </Border>
  63. </ControlTemplate>
  64. </Setter.Value>
  65. </Setter>
  66. <Style.Triggers>
  67. <Trigger Property="IsMouseOver" Value="True">
  68. <Setter Property="Background" Value="#eee" />
  69. </Trigger>
  70. <DataTrigger Binding="{Binding Selected}" Value="true">
  71. <Setter Property="Background" Value="#136efb" />
  72. </DataTrigger>
  73. </Style.Triggers>
  74. </Style>
  75. </Button.Style>
  76. </Button>
  77. </DataTemplate>
  78. <Style TargetType="Button">
  79. <Setter Property="BorderThickness" Value="0" />
  80. <Setter Property="Background" Value="Transparent" />
  81. <Setter Property="Template">
  82. <Setter.Value>
  83. <ControlTemplate TargetType="{x:Type Button}">
  84. <Border
  85. Background="{TemplateBinding Background}"
  86. BorderBrush="Black"
  87. BorderThickness="0">
  88. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
  89. </Border>
  90. </ControlTemplate>
  91. </Setter.Value>
  92. </Setter>
  93. <Style.Triggers>
  94. <Trigger Property="IsMouseOver" Value="True">
  95. <Setter Property="Background" Value="#ddd" />
  96. </Trigger>
  97. </Style.Triggers>
  98. </Style>
  99. <Style TargetType="TextBlock">
  100. <Setter Property="Foreground" Value="#3C525B" />
  101. </Style>
  102. </Window.Resources>
  103. <Grid x:Name="m_grid" Background="Black">
  104. <Image x:Name="m_image" Margin="0,0,0,0"/>
  105. <InkCanvas x:Name="blackboard_canvas" Background="Transparent" />
  106. <Views:ClippingBorder
  107. Width="60"
  108. Height="58"
  109. Margin="0,0,660,10"
  110. HorizontalAlignment="Center"
  111. VerticalAlignment="Bottom"
  112. Background="#f3f3f3"
  113. CornerRadius="4">
  114. <StackPanel Orientation="Horizontal">
  115. <Button
  116. x:Name="save_button"
  117. Width="60"
  118. Click="save_button_Click"
  119. Cursor="Hand">
  120. <Button.Content>
  121. <StackPanel>
  122. <Image Width="23" Source=".\Images\Blackboard\class_1un.png" />
  123. <TextBlock Margin="0,4,0,0" Text="保存" />
  124. </StackPanel>
  125. </Button.Content>
  126. </Button>
  127. </StackPanel>
  128. </Views:ClippingBorder>
  129. <Views:ClippingBorder
  130. Width="480"
  131. Height="58"
  132. Margin="0,0,0,10"
  133. HorizontalAlignment="Center"
  134. VerticalAlignment="Bottom"
  135. Background="#f3f3f3"
  136. CornerRadius="4">
  137. <ItemsControl
  138. x:Name="toolbar_list"
  139. BorderThickness="0"
  140. ItemTemplate="{StaticResource BMenuTemp}"
  141. ItemsSource="{Binding menuList}">
  142. <ItemsControl.ItemsPanel>
  143. <ItemsPanelTemplate>
  144. <StackPanel Orientation="Horizontal" />
  145. </ItemsPanelTemplate>
  146. </ItemsControl.ItemsPanel>
  147. </ItemsControl>
  148. </Views:ClippingBorder>
  149. <Views:ClippingBorder
  150. x:Name="tip_Color"
  151. Width="360"
  152. Height="58"
  153. Margin="0,0,0,80"
  154. Visibility="Collapsed"
  155. HorizontalAlignment="Center"
  156. VerticalAlignment="Bottom"
  157. Background="#FFFFFF"
  158. CornerRadius="4">
  159. <Border Width="348"
  160. Height="48" CornerRadius="6" Background="#E3E3E3" HorizontalAlignment="Center" Margin="6,6,6,6">
  161. <Grid>
  162. <StackPanel Orientation="Horizontal">
  163. <Button Cursor="Hand" x:Name="btnWhite" Background="#FFFFFF" Width="38" Height="38" Margin="17,0,0,0" Click="BtnWhite_Click" />
  164. <Button Cursor="Hand" x:Name="btnRed" Background="#FF0000" Width="38" Height="38" Margin="17,0,0,0" Click="BtnRed_Click"/>
  165. <Button Cursor="Hand" x:Name="btnGray" Background="#A7A9AC" Width="38" Height="38" Margin="17,0,0,0" Click="BtnGray_Click"/>
  166. <Button Cursor="Hand" x:Name="btnCyanBlue" Background="#63D600" Width="38" Height="38" Margin="17,0,0,0" Click="BtnCyanBlue_Click"/>
  167. <Button Cursor="Hand" x:Name="btnYellow" Background="#FFBC00" Width="38" Height="38" Margin="17,0,0,0" Click="BtnYellow_Click"/>
  168. <Button Cursor="Hand" x:Name="btnBlue" Background="#00B4FC" Width="38" Height="38" Margin="17,0,0,0" Click="BtnBlue_Click"/>
  169. </StackPanel>
  170. </Grid>
  171. </Border>
  172. </Views:ClippingBorder>
  173. <Views:ClippingBorder
  174. x:Name="tip_Size"
  175. Width="197"
  176. Height="58"
  177. Margin="0,0,0,80"
  178. Visibility="Collapsed"
  179. HorizontalAlignment="Center"
  180. VerticalAlignment="Bottom"
  181. Background="#FFFFFF"
  182. CornerRadius="6">
  183. <Border Width="185"
  184. Height="48" CornerRadius="6" Background="#E3E3E3" HorizontalAlignment="Center" Margin="6,6,6,6">
  185. <Grid>
  186. <StackPanel Orientation="Horizontal">
  187. <Button Cursor="Hand" x:Name="btnFine" Background="#E3E3E3" Width="42" Height="42" Margin="10,0,0,0" Click="BtnFine_Click" >
  188. <Image Width="23" Source=".\Images\Blackboard\class_s4.png"/>
  189. </Button>
  190. <Button Cursor="Hand" x:Name="btnIn" Background="#E3E3E3" Width="42" Height="42" Margin="17,0,0,0" Click="BtnIn_Click" >
  191. <Image Width="33" Source=".\Images\Blackboard\class_s3.png"/>
  192. </Button>
  193. <Button Cursor="Hand" x:Name="btnCrude" Background="#E3E3E3" Width="42" Height="42" Margin="17,0,0,0" Click="BtnCrude_Click" >
  194. <Image Width="36" Source=".\Images\Blackboard\class_s2.png"/>
  195. </Button>
  196. </StackPanel>
  197. </Grid>
  198. </Border>
  199. </Views:ClippingBorder>
  200. <Views:ClippingBorder
  201. Width="180"
  202. Height="58"
  203. Margin="790,0,0,10"
  204. HorizontalAlignment="Center"
  205. VerticalAlignment="Bottom"
  206. Background="#f3f3f3"
  207. CornerRadius="4">
  208. <StackPanel Orientation="Horizontal">
  209. <Button Cursor="Hand"
  210. x:Name="last_button"
  211. Width="60"
  212. Click="last_button_Click">
  213. <Button.Content>
  214. <StackPanel>
  215. <Image Width="16" Source=".\Images\Blackboard\class_p1.png" />
  216. <TextBlock Margin="0,8,0,0" Text="上一页" />
  217. </StackPanel>
  218. </Button.Content>
  219. </Button>
  220. <Grid Width="60">
  221. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  222. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  223. <TextBlock Text="{Binding currpage}" TextAlignment="Center" FontSize="15"/>
  224. <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
  225. <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
  226. </StackPanel>
  227. <TextBlock
  228. Margin="0,8,0,0"
  229. HorizontalAlignment="Center"
  230. Text="页码" />
  231. </StackPanel>
  232. </Grid>
  233. <Button Cursor="Hand"
  234. x:Name="next_btn"
  235. Width="60"
  236. Click="next_btn_Click">
  237. <Button.Content>
  238. <StackPanel>
  239. <Image Width="16" Source=".\Images\Blackboard\class_p2.png" />
  240. <TextBlock Margin="0,8,0,0" Text="下一页" />
  241. </StackPanel>
  242. </Button.Content>
  243. </Button>
  244. </StackPanel>
  245. </Views:ClippingBorder>
  246. <Views:ClippingBorder
  247. x:Name="tip_outer"
  248. Width="760"
  249. Height="64"
  250. HorizontalAlignment="Center"
  251. Background="#66000000"
  252. CornerRadius="4"
  253. Visibility="Collapsed">
  254. <TextBlock
  255. x:Name="tip_tb"
  256. HorizontalAlignment="Center"
  257. VerticalAlignment="Center"
  258. FontSize="26"
  259. Foreground="#ffffff" />
  260. </Views:ClippingBorder>
  261. </Grid>
  262. </Window>