MainForm.xaml 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585
  1. <Window
  2. x:Class="SHJX.Service.View.MainForm"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:MainLibrarys="clr-namespace:SHJX.Service.Librarys.MainLibrarys;assembly=SHJX.Service.Librarys"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
  8. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  11. Title="MainWindow"
  12. Width="1200"
  13. Height="1000"
  14. ResizeMode="CanMinimize"
  15. SizeChanged="Window_SizeChanged"
  16. WindowStartupLocation="CenterScreen"
  17. WindowState="Maximized"
  18. WindowStyle="None"
  19. mc:Ignorable="d">
  20. <i:Interaction.Triggers>
  21. <i:EventTrigger EventName="Loaded">
  22. <ei:CallMethodAction MethodName="MainLoaded" TargetObject="{Binding}" />
  23. </i:EventTrigger>
  24. </i:Interaction.Triggers>
  25. <Window.Resources>
  26. <!--#region 刷新按钮样式-->
  27. <Style x:Key="FocusVisual">
  28. <Setter Property="Control.Template">
  29. <Setter.Value>
  30. <ControlTemplate>
  31. <Rectangle
  32. Margin="2"
  33. SnapsToDevicePixels="true"
  34. Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
  35. StrokeDashArray="1 2"
  36. StrokeThickness="1" />
  37. </ControlTemplate>
  38. </Setter.Value>
  39. </Setter>
  40. </Style>
  41. <SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD" />
  42. <SolidColorBrush x:Key="Button.Static.Border" Color="Transparent" />
  43. <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD" />
  44. <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1" />
  45. <SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6" />
  46. <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B" />
  47. <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4" />
  48. <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5" />
  49. <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383" />
  50. <Style x:Key="ButtonStyle_User_Frush" TargetType="{x:Type Button}">
  51. <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" />
  52. <Setter Property="Background" Value="{StaticResource Button.Static.Background}" />
  53. <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}" />
  54. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
  55. <Setter Property="BorderThickness" Value="1" />
  56. <Setter Property="HorizontalContentAlignment" Value="Center" />
  57. <Setter Property="VerticalContentAlignment" Value="Center" />
  58. <Setter Property="Padding" Value="1" />
  59. <Setter Property="Template">
  60. <Setter.Value>
  61. <ControlTemplate TargetType="{x:Type Button}">
  62. <Border
  63. x:Name="border"
  64. Background="{TemplateBinding Background}"
  65. BorderBrush="{TemplateBinding BorderBrush}"
  66. BorderThickness="{TemplateBinding BorderThickness}"
  67. SnapsToDevicePixels="true">
  68. <ContentPresenter
  69. x:Name="contentPresenter"
  70. Margin="{TemplateBinding Padding}"
  71. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  72. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  73. Focusable="False"
  74. RecognizesAccessKey="True"
  75. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  76. </Border>
  77. <ControlTemplate.Triggers>
  78. <Trigger Property="IsDefaulted" Value="true">
  79. <Setter TargetName="border" Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
  80. </Trigger>
  81. <Trigger Property="IsMouseOver" Value="true">
  82. <Setter TargetName="border" Property="Background" Value="Transparent" />
  83. </Trigger>
  84. <Trigger Property="IsPressed" Value="true">
  85. <Setter TargetName="border" Property="Background" Value="Transparent" />
  86. </Trigger>
  87. <Trigger Property="IsEnabled" Value="false">
  88. <Setter TargetName="border" Property="Background" Value="{StaticResource Button.Disabled.Background}" />
  89. <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.Disabled.Border}" />
  90. <Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{StaticResource Button.Disabled.Foreground}" />
  91. </Trigger>
  92. </ControlTemplate.Triggers>
  93. </ControlTemplate>
  94. </Setter.Value>
  95. </Setter>
  96. </Style>
  97. <!--#endregion-->
  98. <!--#region 下面这段代码不用,不能变成Uniform的样式-->
  99. <Style x:Key="ItemContainerStyle" TargetType="{x:Type ListViewItem}">
  100. <Setter Property="Template">
  101. <Setter.Value>
  102. <ControlTemplate TargetType="{x:Type ListViewItem}">
  103. <Border
  104. x:Name="Bd"
  105. Background="Transparent"
  106. BorderBrush="Transparent"
  107. BorderThickness="0">
  108. <ContentPresenter />
  109. </Border>
  110. <ControlTemplate.Triggers>
  111. <Trigger Property="IsSelected" Value="true">
  112. <Setter TargetName="Bd" Property="Background" Value="Transparent" />
  113. </Trigger>
  114. </ControlTemplate.Triggers>
  115. </ControlTemplate>
  116. </Setter.Value>
  117. </Setter>
  118. </Style>
  119. <!-- endregion -->
  120. <!--#region 消解位模板-->
  121. <DataTemplate x:Key="DissolveItemTemplate">
  122. <MainLibrarys:DissolveElement
  123. HorizontalAlignment="Center"
  124. VerticalAlignment="Center"
  125. DissolveText="{Binding DisplayText}"
  126. ProcessValue="{Binding DisplayValue}" />
  127. </DataTemplate>
  128. <!--#endregion-->
  129. <!--#region 样品位模板-->
  130. <DataTemplate x:Key="SampleDetailTemplate">
  131. <MainLibrarys:DetailElement
  132. CurrentDetailInfo="{Binding DetailInfo}"
  133. CurrentName="{Binding UIName}"
  134. CurrentResult="{Binding Result}"
  135. CurrentTagColor="{Binding TagColor}"
  136. CurrentTagNo="{Binding TagNo}"
  137. CurrentVolume="{Binding Volume}" />
  138. </DataTemplate>
  139. <!--#endregion-->
  140. <!--#region 中间位模板-->
  141. <DataTemplate x:Key="CenterControlTemplate">
  142. <MainLibrarys:CenterControl
  143. Margin="3"
  144. BackColor="{Binding BackColor}"
  145. CenterText="{Binding CenterText}"
  146. TagNameText="{Binding TagText}" />
  147. </DataTemplate>
  148. <!--#endregion-->
  149. </Window.Resources>
  150. <Grid>
  151. <Grid.RowDefinitions>
  152. <RowDefinition Height="2.3*" />
  153. <RowDefinition Height="22*" />
  154. <RowDefinition Height="0.7*" />
  155. </Grid.RowDefinitions>
  156. <!--#region 顶部标题栏-->
  157. <Grid
  158. Name="mainwindow_tag"
  159. Grid.Row="0"
  160. Background="#99CCCC">
  161. <Grid>
  162. <Grid.ColumnDefinitions>
  163. <ColumnDefinition Width="8*" />
  164. <ColumnDefinition Width="1*" />
  165. </Grid.ColumnDefinitions>
  166. <StackPanel Grid.Column="0" Orientation="Horizontal">
  167. <MainLibrarys:TagElement x:Name="beiginTask"
  168. HorizontalAlignment="Left"
  169. ClickCommand="{Binding TaskStartCommand}"
  170. DisplayImage="/SHJX.Service.Resource;component/Resources/开始.png"
  171. IsEnabled="False"
  172. TagDetail="开始任务" Cursor="Hand" />
  173. <MainLibrarys:TagElement
  174. HorizontalAlignment="Left"
  175. ClickCommand="{Binding TaskPauseCommand}"
  176. DisplayImage="{Binding PauseIcon}"
  177. TagDetail="{Binding PauseText}" />
  178. <MainLibrarys:TagElement
  179. HorizontalAlignment="Left"
  180. DisplayImage="/SHJX.Service.Resource;component/Resources/演示.png"
  181. TagDetail="演示作业" />
  182. <!--<MainLibrarys:TagElement
  183. HorizontalAlignment="Left"
  184. ClickCommand="{Binding ClearPipeCommand}"
  185. DisplayImage="/SHJX.Service.Resource;component/Resources/清洗.png"
  186. TagDetail="清洗管路" />-->
  187. <MainLibrarys:TagElement
  188. HorizontalAlignment="Left"
  189. ClickCommand="{Binding ManualControlCommand}"
  190. DisplayImage="/SHJX.Service.Resource;component/Resources/手动.png"
  191. TagDetail="手动控制" Cursor="Hand" />
  192. <MainLibrarys:TagElement
  193. HorizontalAlignment="Left"
  194. ClickCommand="{Binding ExportWordCommand}"
  195. DisplayImage="{Binding ExportWordIcon}"
  196. TagDetail="结果导出" />
  197. <MainLibrarys:TagElement
  198. HorizontalAlignment="Left"
  199. ClickCommand="{Binding TemplateCommand}"
  200. DisplayImage="/SHJX.Service.Resource;component/Resources/模板.png"
  201. TagDetail="模板操作" />
  202. <MainLibrarys:TagElement
  203. HorizontalAlignment="Left"
  204. ClickCommand="{Binding SettingCommand}"
  205. Cursor="Hand"
  206. DisplayImage="/SHJX.Service.Resource;component/Resources/配置.png"
  207. TagDetail="配置管理" />
  208. <MainLibrarys:TagElement
  209. HorizontalAlignment="Left"
  210. ClickCommand="{Binding ScreenCaptureCommand}"
  211. DisplayImage="/SHJX.Service.Resource;component/Resources/截图.png"
  212. TagDetail="屏幕截图" />
  213. <MainLibrarys:TagElement
  214. HorizontalAlignment="Left"
  215. ClickCommand="{Binding AboutSystemCommand}"
  216. DisplayImage="/SHJX.Service.Resource;component/Resources/关于.png"
  217. TagDetail="关于系统" />
  218. <MainLibrarys:TagElement
  219. HorizontalAlignment="Left"
  220. ClickCommand="{Binding MinSizeCommand}"
  221. DisplayImage="/SHJX.Service.Resource;component/Resources/最小化.png"
  222. TagDetail="最小化" />
  223. <MainLibrarys:TagElement
  224. HorizontalAlignment="Left"
  225. ClickCommand="{Binding MainCloseCommand}"
  226. DisplayImage="/SHJX.Service.Resource;component/Resources/关闭.png"
  227. TagDetail="关闭系统" />
  228. </StackPanel>
  229. <StackPanel
  230. Grid.Column="1"
  231. Margin="0,0,10,0"
  232. HorizontalAlignment="Right"
  233. VerticalAlignment="Center"
  234. Orientation="Vertical">
  235. <pu:DropDown
  236. Margin="0,0,20,0"
  237. HorizontalAlignment="Left"
  238. VerticalAlignment="Top"
  239. BorderBrush="Transparent"
  240. Cursor="Hand">
  241. <Grid Width="50">
  242. <Button
  243. Width="50"
  244. Height="50"
  245. HorizontalAlignment="Center"
  246. pu:ButtonHelper.CornerRadius="30"
  247. Background="Transparent"
  248. BorderBrush="White"
  249. BorderThickness="1">
  250. <Image
  251. Width="40"
  252. Height="40"
  253. Source="{Binding WashIcon}" />
  254. </Button>
  255. </Grid>
  256. <pu:DropDown.Child>
  257. <StackPanel
  258. Width="150"
  259. Height="140"
  260. Background="Transparent">
  261. <Button
  262. Width="55"
  263. Height="55"
  264. Margin="0,10,0,0"
  265. pu:ButtonHelper.ClickStyle="Sink"
  266. pu:ButtonHelper.CornerRadius="30"
  267. pu:ButtonHelper.HoverBrush="#66CCCC"
  268. Background="#99CCCC"
  269. BorderBrush="#99CCCC"
  270. BorderThickness="2"
  271. Command="{Binding ClearPipeCommand}"
  272. Cursor="Hand">
  273. <!--<Image
  274. Width="45"
  275. Height="45"
  276. Source="/SHJX.Service.Resource;component/Resources/清洗.png" />-->
  277. 清洗
  278. </Button>
  279. <!--<TextBlock
  280. HorizontalAlignment="Center"
  281. FontFamily="幼圆"
  282. FontSize="16"
  283. FontWeight="Black"
  284. Foreground="#99CCCC"
  285. Text="清洗管路" />-->
  286. <Image Margin="0,10,0,0" Source="/SHJX.Service.Resource;component/Resources/按键分割线_横.png" />
  287. <CheckBox
  288. x:Name="CbWash"
  289. Grid.Row="0"
  290. Height="50"
  291. HorizontalAlignment="Center"
  292. pu:CheckBoxHelper.BoxHeight="16"
  293. pu:CheckBoxHelper.BoxWidth="24"
  294. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  295. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  296. Command="{Binding WashChooseCommand}"
  297. Content="润洗管路"
  298. Cursor="Hand"
  299. FontFamily="幼圆"
  300. FontSize="16"
  301. FontWeight="Black"
  302. Foreground="#99CCCC"
  303. IsChecked="{Binding WhetherWash, Mode=OneWayToSource}" />
  304. </StackPanel>
  305. </pu:DropDown.Child>
  306. </pu:DropDown>
  307. </StackPanel>
  308. </Grid>
  309. </Grid>
  310. <!--#endregion-->
  311. <!--#region 中间主体-->
  312. <Grid Grid.Row="1" Grid.Column="0">
  313. <Grid Grid.Column="0">
  314. <Grid.RowDefinitions>
  315. <RowDefinition Height="2*" />
  316. <RowDefinition Height="6*" />
  317. </Grid.RowDefinitions>
  318. <Border
  319. Grid.Row="0"
  320. BorderBrush="#99CCCC"
  321. BorderThickness="0,0,0,2" />
  322. <ListView
  323. Grid.Row="0"
  324. Background="Transparent"
  325. BorderBrush="Transparent"
  326. ItemContainerStyle="{StaticResource ItemContainerStyle}"
  327. ItemTemplate="{StaticResource ResourceKey=DissolveItemTemplate}"
  328. ItemsSource="{Binding DissolvePositions}">
  329. <ListView.ItemsPanel>
  330. <ItemsPanelTemplate>
  331. <UniformGrid Columns="12" Rows="2" />
  332. </ItemsPanelTemplate>
  333. </ListView.ItemsPanel>
  334. </ListView>
  335. <Grid Grid.Row="1" Background="Transparent">
  336. <Grid.ColumnDefinitions>
  337. <ColumnDefinition Width="6*" />
  338. <ColumnDefinition Width="1*" />
  339. <ColumnDefinition Width="6*" />
  340. </Grid.ColumnDefinitions>
  341. <ListView
  342. Grid.Column="0"
  343. Background="Transparent"
  344. BorderBrush="Transparent"
  345. ItemContainerStyle="{StaticResource ItemContainerStyle}"
  346. ItemTemplate="{StaticResource ResourceKey=SampleDetailTemplate}"
  347. ItemsSource="{Binding LeftSampleAreas}">
  348. <ListView.ItemsPanel>
  349. <ItemsPanelTemplate>
  350. <UniformGrid Columns="6" Rows="4" />
  351. </ItemsPanelTemplate>
  352. </ListView.ItemsPanel>
  353. </ListView>
  354. <ListView
  355. Grid.Column="1"
  356. Background="Transparent"
  357. BorderBrush="Transparent"
  358. ItemContainerStyle="{StaticResource ItemContainerStyle}"
  359. ItemTemplate="{StaticResource ResourceKey=CenterControlTemplate}"
  360. ItemsSource="{Binding CenterControls}">
  361. <ListView.ItemsPanel>
  362. <ItemsPanelTemplate>
  363. <UniformGrid Columns="1" Rows="5" />
  364. </ItemsPanelTemplate>
  365. </ListView.ItemsPanel>
  366. </ListView>
  367. <ListView
  368. Grid.Column="2"
  369. Background="Transparent"
  370. BorderBrush="Transparent"
  371. ItemContainerStyle="{StaticResource ItemContainerStyle}"
  372. ItemTemplate="{StaticResource ResourceKey=SampleDetailTemplate}"
  373. ItemsSource="{Binding RightSampleAreas}">
  374. <ListView.ItemsPanel>
  375. <ItemsPanelTemplate>
  376. <UniformGrid Columns="6" Rows="4" />
  377. </ItemsPanelTemplate>
  378. </ListView.ItemsPanel>
  379. </ListView>
  380. </Grid>
  381. </Grid>
  382. </Grid>
  383. <!--#endregion-->
  384. <!--#region 底部栏-->
  385. <Grid
  386. Grid.Row="2"
  387. Grid.ColumnSpan="2"
  388. Background="#99CCCC">
  389. <StackPanel
  390. Grid.Column="5"
  391. Margin="0,0,20,0"
  392. HorizontalAlignment="Right"
  393. VerticalAlignment="Center"
  394. Orientation="Horizontal">
  395. <TextBlock
  396. HorizontalAlignment="Center"
  397. VerticalAlignment="Center"
  398. FontFamily="幼圆"
  399. FontWeight="UltraBold"
  400. FontSize="12"
  401. Foreground="White"
  402. Text="相机数量:" />
  403. <ComboBox
  404. x:Name="cameraNumCombobox"
  405. Width="35"
  406. Height="22"
  407. Margin="0,0,0,0"
  408. HorizontalAlignment="Center"
  409. VerticalAlignment="Center"
  410. pu:ComboBoxHelper.CornerRadius="4"
  411. FontSize="15"
  412. FontFamily="幼圆"
  413. FontWeight="Regular"
  414. Visibility="Visible"
  415. IsSynchronizedWithCurrentItem="False" SelectionChanged="cameraNumCombobox_SelectionChanged" DropDownClosed="cameraNumCombobox_DropDownClosed" >
  416. <ComboBoxItem Content="0" IsSelected="True"/>
  417. <ComboBoxItem Content="1"/>
  418. <ComboBoxItem Content="2"/>
  419. </ComboBox>
  420. <!--<Image Source="/SHJX.Service.Resource;component/Resources/按键分割线.png" />-->
  421. <!--<CheckBox
  422. Height="25"
  423. HorizontalAlignment="Center"
  424. VerticalAlignment="Center"
  425. pu:CheckBoxHelper.BoxHeight="16"
  426. pu:CheckBoxHelper.BoxWidth="25"
  427. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  428. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  429. Command="{Binding CameraDetect}"
  430. Content="空压机开启"
  431. Cursor="Hand"
  432. FontFamily="幼圆"
  433. FontSize="12"
  434. FontWeight="UltraBold"
  435. Foreground="White"
  436. IsChecked="{Binding WhetherCameraDetect, Mode=OneWayToSource}" />-->
  437. <Image Source="/SHJX.Service.Resource;component/Resources/按键分割线.png" />
  438. <CheckBox x:Name="coldWater"
  439. Height="25"
  440. HorizontalAlignment="Center"
  441. VerticalAlignment="Center"
  442. pu:CheckBoxHelper.BoxHeight="16"
  443. pu:CheckBoxHelper.BoxWidth="25"
  444. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  445. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  446. Command="{Binding WaterMachine}"
  447. Content="冷凝水机开启"
  448. Cursor="Hand"
  449. FontFamily="幼圆"
  450. FontSize="12"
  451. FontWeight="UltraBold"
  452. Foreground="White"
  453. IsChecked="{Binding WaterMachineOpen, Mode=OneWayToSource}"
  454. Checked="WaterMachineOpenClick"
  455. Unchecked="WaterMachineCloseClick"/>
  456. <Image Source="/SHJX.Service.Resource;component/Resources/按键分割线.png" />
  457. <TextBlock
  458. HorizontalAlignment="Center"
  459. VerticalAlignment="Center"
  460. FontFamily="幼圆"
  461. FontSize="12"
  462. FontWeight="UltraBold"
  463. Foreground="White"
  464. Text="通信端口:" />
  465. <TextBlock
  466. Margin="0,0,0,0"
  467. HorizontalAlignment="Center"
  468. VerticalAlignment="Center"
  469. FontFamily="幼圆"
  470. FontSize="12"
  471. FontWeight="UltraBold"
  472. Foreground="White"
  473. Text="{Binding ClientName}" />
  474. <Image Source="/SHJX.Service.Resource;component/Resources/按键分割线.png" />
  475. <TextBlock
  476. HorizontalAlignment="Center"
  477. VerticalAlignment="Center"
  478. FontFamily="幼圆"
  479. FontSize="12"
  480. FontWeight="UltraBold"
  481. Foreground="White"
  482. Text="连接状态:" />
  483. <pu:Badge
  484. Width="20"
  485. Height="20"
  486. Margin="0,0,10,0"
  487. HorizontalAlignment="Center"
  488. VerticalAlignment="Center"
  489. Background="{Binding PortClientColor}"
  490. IsWaving="{Binding PortClientState}" />
  491. <Button
  492. Width="20"
  493. Height="20"
  494. Margin="0,0,0,0"
  495. HorizontalAlignment="Center"
  496. VerticalAlignment="Center"
  497. Background="Transparent"
  498. Command="{Binding FrushClientCommand}"
  499. Cursor="Hand"
  500. RenderTransformOrigin="0.5,0.5"
  501. Style="{DynamicResource ButtonStyle_User_Frush}">
  502. <Image
  503. Width="15"
  504. Height="15"
  505. HorizontalAlignment="Center"
  506. VerticalAlignment="Center"
  507. Source="/SHJX.Service.Resource;component/Resources/Cycle.png" />
  508. <Button.RenderTransform>
  509. <RotateTransform x:Name="trans" Angle="0" />
  510. </Button.RenderTransform>
  511. <Button.Triggers>
  512. <EventTrigger RoutedEvent="Button.Click">
  513. <BeginStoryboard>
  514. <Storyboard>
  515. <DoubleAnimation
  516. RepeatBehavior="1x"
  517. Storyboard.TargetName="trans"
  518. Storyboard.TargetProperty="Angle"
  519. From="0"
  520. To="-540"
  521. Duration="0:0:1" />
  522. </Storyboard>
  523. </BeginStoryboard>
  524. </EventTrigger>
  525. </Button.Triggers>
  526. </Button>
  527. <Image Source="/SHJX.Service.Resource;component/Resources/按键分割线.png" />
  528. <CheckBox
  529. Height="25"
  530. HorizontalAlignment="Center"
  531. VerticalAlignment="Center"
  532. pu:CheckBoxHelper.BoxHeight="16"
  533. pu:CheckBoxHelper.BoxWidth="25"
  534. pu:CheckBoxHelper.CheckBoxStyle="Switch"
  535. pu:CheckBoxHelper.CheckedBackground="#99CCCC"
  536. Command="{Binding LockDestCommand}"
  537. Content="屏幕锁定"
  538. Cursor="Hand"
  539. FontFamily="幼圆"
  540. FontSize="12"
  541. FontWeight="UltraBold"
  542. Foreground="White"
  543. IsChecked="{Binding WhetherLockMain, Mode=OneWayToSource}" />
  544. </StackPanel>
  545. <Label Content="*" HorizontalAlignment="Center" VerticalAlignment="Center" MouseDoubleClick="Label_MouseDoubleClick"/>
  546. </Grid>
  547. <!--#endregion-->
  548. <!--#region 遮蔽层(用于锁定界面)-->
  549. <Grid
  550. Grid.Row="0"
  551. Grid.RowSpan="2"
  552. Grid.Column="0"
  553. Grid.ColumnSpan="2"
  554. Background="#45FFFFFF"
  555. Visibility="{Binding MainHiddenValue}" />
  556. <!-- endregion -->
  557. </Grid>
  558. </Window>