星火直播PC
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

ZBlackboardWindow.xaml 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. <Window x:Class="XHZB.Desktop.ZBlackboardWindow"
  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.system;assembly=Common"
  7. mc:Ignorable="d"
  8. Title="ZBlackboardWindow" Width="1280"
  9. Height="800"
  10. AllowsTransparency="True"
  11. Background="Transparent"
  12. Closed="Window_Closed"
  13. Opacity="1"
  14. ShowInTaskbar="False"
  15. WindowStyle="None">
  16. <Window.Resources>
  17. <DataTemplate x:Key="BMenuTemp">
  18. <Button
  19. x:Name="toolbar_item"
  20. Width="60"
  21. Height="60"
  22. BorderThickness="0"
  23. Click="menu_item_Click"
  24. Cursor="Hand">
  25. <Button.Content>
  26. <StackPanel Width="Auto" Background="Transparent">
  27. <Image
  28. Width="23"
  29. HorizontalAlignment="Center"
  30. Source="{Binding Pic}" />
  31. <TextBlock
  32. x:Name="menu_name"
  33. Margin="0,2,0,0"
  34. HorizontalAlignment="Center"
  35. Text="{Binding Name}">
  36. <TextBlock.Style>
  37. <Style TargetType="TextBlock">
  38. <Setter Property="Foreground" Value="#3C525B" />
  39. <Style.Triggers>
  40. <DataTrigger Binding="{Binding Selected}" Value="true">
  41. <Setter Property="Foreground" Value="#ffffff" />
  42. </DataTrigger>
  43. </Style.Triggers>
  44. </Style>
  45. </TextBlock.Style>
  46. </TextBlock>
  47. </StackPanel>
  48. </Button.Content>
  49. <Button.Style>
  50. <Style TargetType="Button">
  51. <Setter Property="Background" Value="Transparent" />
  52. <Setter Property="Template">
  53. <Setter.Value>
  54. <ControlTemplate TargetType="{x:Type Button}">
  55. <Border
  56. Background="{TemplateBinding Background}"
  57. BorderBrush="Black"
  58. BorderThickness="0">
  59. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
  60. </Border>
  61. </ControlTemplate>
  62. </Setter.Value>
  63. </Setter>
  64. <Style.Triggers>
  65. <Trigger Property="IsMouseOver" Value="True">
  66. <Setter Property="Background" Value="#eee" />
  67. </Trigger>
  68. <DataTrigger Binding="{Binding Selected}" Value="true">
  69. <Setter Property="Background" Value="#136efb" />
  70. </DataTrigger>
  71. </Style.Triggers>
  72. </Style>
  73. </Button.Style>
  74. </Button>
  75. </DataTemplate>
  76. <Style TargetType="Button">
  77. <Setter Property="BorderThickness" Value="0" />
  78. <Setter Property="Background" Value="Transparent" />
  79. <Setter Property="Template">
  80. <Setter.Value>
  81. <ControlTemplate TargetType="{x:Type Button}">
  82. <Border
  83. Background="{TemplateBinding Background}"
  84. BorderBrush="Black"
  85. BorderThickness="0">
  86. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
  87. </Border>
  88. </ControlTemplate>
  89. </Setter.Value>
  90. </Setter>
  91. <Style.Triggers>
  92. <Trigger Property="IsMouseOver" Value="True">
  93. <Setter Property="Background" Value="#ddd" />
  94. </Trigger>
  95. </Style.Triggers>
  96. </Style>
  97. <Style TargetType="TextBlock">
  98. <Setter Property="Foreground" Value="#3C525B" />
  99. </Style>
  100. </Window.Resources>
  101. <Grid Background="White" x:Name="gridMain">
  102. <InkCanvas x:Name="blackboard_canvas" Background="#043a25" />
  103. <Views:ZJClippingBorder
  104. Width="60"
  105. Height="58"
  106. Margin="0,0,660,10"
  107. HorizontalAlignment="Center"
  108. VerticalAlignment="Bottom"
  109. Background="#f3f3f3"
  110. CornerRadius="4">
  111. <StackPanel
  112. Width="60"
  113. HorizontalAlignment="Left"
  114. 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:ZJClippingBorder>
  129. <Views:ZJClippingBorder
  130. Width="538"
  131. Height="58"
  132. Margin="0,0,0,10"
  133. HorizontalAlignment="Center"
  134. VerticalAlignment="Bottom"
  135. Background="#f3f3f3"
  136. CornerRadius="6">
  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:ZJClippingBorder>
  149. <Views:ZJClippingBorder
  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:ZJClippingBorder>
  173. <Views:ZJClippingBorder
  174. x:Name="tip_BlackboardColor"
  175. Width="180"
  176. Height="58"
  177. Margin="0,0,0,80"
  178. Visibility="Collapsed"
  179. HorizontalAlignment="Center"
  180. VerticalAlignment="Bottom"
  181. Background="#FFFFFF"
  182. CornerRadius="4">
  183. <Border Width="168"
  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="btnBlack" Background="Black" Width="38" Height="38" Margin="10,0,0,0" Click="BtnBlack_Click"/>
  188. <Button Cursor="Hand" x:Name="btnWhites" Background="White" Width="38" Height="38" Margin="17,0,0,0" Click="BtnWhites_Click"/>
  189. <Button Cursor="Hand" x:Name="btnGreen" Background="#043a25" Width="38" Height="38" Margin="17,0,0,0" Click="BtnGreen_Click"/>
  190. </StackPanel>
  191. </Grid>
  192. </Border>
  193. </Views:ZJClippingBorder>
  194. <Views:ZJClippingBorder
  195. x:Name="tip_Size"
  196. Width="197"
  197. Height="58"
  198. Margin="0,0,0,80"
  199. Visibility="Collapsed"
  200. HorizontalAlignment="Center"
  201. VerticalAlignment="Bottom"
  202. Background="#FFFFFF"
  203. CornerRadius="6">
  204. <Border Width="185"
  205. Height="48" CornerRadius="6" Background="#E3E3E3" HorizontalAlignment="Center" Margin="6,6,6,6">
  206. <Grid>
  207. <StackPanel Orientation="Horizontal">
  208. <Button Cursor="Hand" x:Name="btnFine" Background="#E3E3E3" Width="42" Height="42" Margin="10,0,0,0" Click="BtnFine_Click" >
  209. <Image Width="23" Source=".\Images\Blackboard\class_s4.png"/>
  210. </Button>
  211. <Button Cursor="Hand" x:Name="btnIn" Background="#E3E3E3" Width="42" Height="42" Margin="17,0,0,0" Click="BtnIn_Click" >
  212. <Image Width="33" Source=".\Images\Blackboard\class_s3.png"/>
  213. </Button>
  214. <Button Cursor="Hand" x:Name="btnCrude" Background="#E3E3E3" Width="42" Height="42" Margin="17,0,0,0" Click="BtnCrude_Click" >
  215. <Image Width="36" Source=".\Images\Blackboard\class_s2.png"/>
  216. </Button>
  217. </StackPanel>
  218. </Grid>
  219. </Border>
  220. </Views:ZJClippingBorder>
  221. <Views:ZJClippingBorder
  222. Width="240"
  223. Height="58"
  224. Margin="830,0,0,10"
  225. HorizontalAlignment="Center"
  226. VerticalAlignment="Bottom"
  227. Background="#f3f3f3"
  228. CornerRadius="4">
  229. <StackPanel Orientation="Horizontal">
  230. <Button Cursor="Hand"
  231. x:Name="last_button"
  232. Width="60"
  233. Click="last_button_Click">
  234. <Button.Content>
  235. <StackPanel>
  236. <Image Width="16" Source=".\Images\Blackboard\class_p1.png" />
  237. <TextBlock Margin="0,8,0,0" Text="上一页" />
  238. </StackPanel>
  239. </Button.Content>
  240. </Button>
  241. <Grid Width="60">
  242. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  243. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  244. <TextBlock Text="{Binding currpage}" TextAlignment="Center" FontSize="15"/>
  245. <TextBlock Text="/" TextAlignment="Center" FontSize="15"/>
  246. <TextBlock Text="{Binding pagenum}" TextAlignment="Center" FontSize="15"/>
  247. </StackPanel>
  248. <TextBlock
  249. Margin="0,8,0,0"
  250. HorizontalAlignment="Center"
  251. Text="页码" />
  252. </StackPanel>
  253. </Grid>
  254. <Button Cursor="Hand"
  255. x:Name="next_btn"
  256. Width="60"
  257. Click="next_btn_Click">
  258. <Button.Content>
  259. <StackPanel>
  260. <Image Width="16" Source=".\Images\Blackboard\class_p2.png" />
  261. <TextBlock Margin="0,8,0,0" Text="下一页" />
  262. </StackPanel>
  263. </Button.Content>
  264. </Button>
  265. <Button Cursor="Hand"
  266. x:Name="add_button"
  267. Width="60"
  268. Click="add_button_Click">
  269. <Button.Content>
  270. <StackPanel>
  271. <Image Width="16" Source=".\Images\Blackboard\class_p3.png" />
  272. <TextBlock Margin="0,4,0,0" Text="添加" />
  273. </StackPanel>
  274. </Button.Content>
  275. </Button>
  276. </StackPanel>
  277. </Views:ZJClippingBorder>
  278. <Views:ZJClippingBorder
  279. x:Name="tip_outer"
  280. Width="760"
  281. Height="64"
  282. HorizontalAlignment="Center"
  283. Background="#66000000"
  284. CornerRadius="4"
  285. Visibility="Collapsed">
  286. <TextBlock
  287. x:Name="tip_tb"
  288. HorizontalAlignment="Center"
  289. VerticalAlignment="Center"
  290. FontSize="26"
  291. Foreground="#ffffff" />
  292. </Views:ZJClippingBorder>
  293. </Grid>
  294. </Window>