终端一体化运控平台
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

622 satır
35 KiB

  1. <UserControl
  2. x:Class="BPASmart.VariableManager.Views.VariableConfig"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:con="clr-namespace:BPASmart.VariableManager.Converter"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:BPASmart.VariableManager.Views"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  10. xmlns:vm="clr-namespace:BPASmart.VariableManager.ViewModels"
  11. d:DesignHeight="600"
  12. d:DesignWidth="1200"
  13. mc:Ignorable="d">
  14. <!--<UserControl.DataContext>
  15. <vm:VariableConfig />
  16. </UserControl.DataContext>-->
  17. <UserControl.Resources>
  18. <Style x:Key="TextBoxStyle" TargetType="TextBox">
  19. <Setter Property="FontFamily" Value="楷体" />
  20. <Setter Property="FontSize" Value="22" />
  21. <Setter Property="VerticalContentAlignment" Value="Center" />
  22. <Setter Property="Width" Value="188" />
  23. <Setter Property="Padding" Value="6,0,0,0" />
  24. <Setter Property="Height" Value="37" />
  25. <Setter Property="BorderThickness" Value="0" />
  26. <Setter Property="Foreground" Value="{StaticResource PoupTextblockColor}" />
  27. <Setter Property="BorderBrush" Value="{StaticResource PoupTextblockColor}" />
  28. <Setter Property="CaretBrush" Value="{StaticResource PoupTextblockColor}" />
  29. <Setter Property="VerticalAlignment" Value="Center" />
  30. <Setter Property="Background">
  31. <Setter.Value>
  32. <ImageBrush ImageSource="/BPASmartClient.CustomResource;component/Image/textBox.png" Stretch="Fill" />
  33. </Setter.Value>
  34. </Setter>
  35. </Style>
  36. <Style x:Key="TextBlockStyle" TargetType="TextBlock">
  37. <Setter Property="FontFamily" Value="楷体" />
  38. <Setter Property="FontSize" Value="18" />
  39. <Setter Property="Foreground" Value="{StaticResource PoupTextblockColor}" />
  40. <Setter Property="VerticalAlignment" Value="Center" />
  41. <Setter Property="HorizontalAlignment" Value="Center" />
  42. </Style>
  43. <Style x:Key="RowRadioButtonStyle" TargetType="{x:Type RadioButton}">
  44. <Setter Property="Template">
  45. <Setter.Value>
  46. <ControlTemplate TargetType="{x:Type RadioButton}">
  47. <Border
  48. x:Name="NvaBor"
  49. Background="Transparent"
  50. BorderBrush="#FF2AB2E7"
  51. BorderThickness="0">
  52. <ContentControl
  53. Margin="10,4"
  54. HorizontalAlignment="Center"
  55. VerticalAlignment="Center"
  56. HorizontalContentAlignment="Center"
  57. VerticalContentAlignment="Center"
  58. Content="{TemplateBinding Content}"
  59. FontSize="16" />
  60. </Border>
  61. <ControlTemplate.Triggers>
  62. <Trigger Property="IsChecked" Value="True">
  63. <Setter TargetName="NvaBor" Property="Background" Value="#22ffffff" />
  64. <Setter TargetName="NvaBor" Property="BorderThickness" Value="0" />
  65. </Trigger>
  66. <MultiTrigger>
  67. <MultiTrigger.Conditions>
  68. <Condition Property="IsChecked" Value="false" />
  69. <Condition Property="IsMouseOver" Value="True" />
  70. </MultiTrigger.Conditions>
  71. <MultiTrigger.Setters>
  72. <Setter TargetName="NvaBor" Property="Background" Value="#22ffffff" />
  73. </MultiTrigger.Setters>
  74. </MultiTrigger>
  75. </ControlTemplate.Triggers>
  76. </ControlTemplate>
  77. </Setter.Value>
  78. </Setter>
  79. </Style>
  80. <Style x:Key="InputTextboxStyle" TargetType="TextBox">
  81. <Setter Property="Margin" Value="0,0,0,0" />
  82. <Setter Property="Padding" Value="5,0,5,0" />
  83. <Setter Property="BorderThickness" Value="0" />
  84. <Setter Property="HorizontalAlignment" Value="Left" />
  85. <Setter Property="Height" Value="40" />
  86. <Setter Property="CaretBrush" Value="{StaticResource TitleBorderColor}" />
  87. <Setter Property="Foreground" Value="{StaticResource TitleBorderColor}" />
  88. <Setter Property="VerticalContentAlignment" Value="Center" />
  89. <Setter Property="FontSize" Value="14" />
  90. <Setter Property="Background" Value="Transparent" />
  91. <Setter Property="VerticalAlignment" Value="Center" />
  92. </Style>
  93. <Style x:Key="ControlButtonStyle" TargetType="Button">
  94. <Setter Property="Margin" Value="0" />
  95. <Setter Property="FontSize" Value="18" />
  96. <Setter Property="Foreground" Value="#FFF53F62" />
  97. <Setter Property="FontWeight" Value="SemiBold" />
  98. <Setter Property="FontFamily" Value="楷体" />
  99. <Setter Property="VerticalContentAlignment" Value="Center" />
  100. <Setter Property="Template">
  101. <Setter.Value>
  102. <ControlTemplate TargetType="Button">
  103. <Border
  104. Name="TitleBarBr"
  105. BorderBrush="#00c2f4"
  106. BorderThickness="0"
  107. CornerRadius="0"
  108. Opacity="0.8">
  109. <ContentPresenter
  110. Margin="{TemplateBinding Margin}"
  111. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  112. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  113. <Border.Background>
  114. <ImageBrush
  115. ImageSource="/BPASmartClient.CustomResource;component/Image/组合边框1.1.png"
  116. Opacity="0.8"
  117. Stretch="Fill" />
  118. </Border.Background>
  119. </Border>
  120. <ControlTemplate.Triggers>
  121. <Trigger Property="IsMouseOver" Value="true">
  122. <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
  123. </Trigger>
  124. </ControlTemplate.Triggers>
  125. </ControlTemplate>
  126. </Setter.Value>
  127. </Setter>
  128. </Style>
  129. <Style x:Key="TitleTextblockStyle" TargetType="TextBlock">
  130. <Setter Property="FontSize" Value="16" />
  131. <Setter Property="HorizontalAlignment" Value="Center" />
  132. <Setter Property="VerticalAlignment" Value="Center" />
  133. <Setter Property="Foreground" Value="{StaticResource tabColor}" />
  134. <Setter Property="FontFamily" Value="楷体" />
  135. <Setter Property="FontWeight" Value="SemiBold" />
  136. </Style>
  137. </UserControl.Resources>
  138. <Grid Margin="10" SizeChanged="TabGrid_SizeChanged">
  139. <Grid.RowDefinitions>
  140. <RowDefinition Height="40" />
  141. <RowDefinition Height="40" />
  142. <RowDefinition />
  143. </Grid.RowDefinitions>
  144. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  145. <Button
  146. Width="150"
  147. Height="40"
  148. Margin="10,0,10,0"
  149. Command="{Binding GenerateEntityClassCommand}"
  150. Content="生成实体类"
  151. FontSize="20"
  152. Style="{StaticResource ImageButtonStyle}" />
  153. <Button
  154. Width="150"
  155. Height="40"
  156. Margin="10,0,10,0"
  157. Command="{Binding StartMotionCommand}"
  158. Content="{Binding ButtonContext}"
  159. FontSize="20"
  160. Style="{StaticResource ImageButtonStyle}" />
  161. <Button
  162. Width="150"
  163. Height="40"
  164. Margin="10,0,10,0"
  165. Command="{Binding SaveCommand}"
  166. Content="保存参数"
  167. FontSize="20"
  168. Style="{StaticResource ImageButtonStyle}" />
  169. </StackPanel>
  170. <!--#region 表格标题栏设置-->
  171. <Grid
  172. Name="TabGrid"
  173. Grid.Row="1"
  174. Margin="0,10,0,0"
  175. Background="#ff0C255F">
  176. <Grid.ColumnDefinitions>
  177. <ColumnDefinition Width="0.2*" />
  178. <ColumnDefinition />
  179. <ColumnDefinition Width="0.4*" />
  180. <ColumnDefinition Width="0.3*" />
  181. <ColumnDefinition Width="0.2*" />
  182. <ColumnDefinition Width="0.2*" />
  183. <ColumnDefinition Width="0.2*" />
  184. </Grid.ColumnDefinitions>
  185. <TextBlock
  186. Grid.Column="0"
  187. Style="{StaticResource TitleTextblockStyle}"
  188. Text="ID" />
  189. <Grid Grid.Column="1">
  190. <TextBlock Style="{StaticResource TitleTextblockStyle}" Text="名称" />
  191. <Border
  192. BorderBrush="{StaticResource bordColor}"
  193. BorderThickness="1,0,1,0"
  194. Cursor="SizeWE" />
  195. </Grid>
  196. <TextBlock
  197. Grid.Column="2"
  198. Style="{StaticResource TitleTextblockStyle}"
  199. Text="地址" />
  200. <Grid Grid.Column="3">
  201. <TextBlock Style="{StaticResource TitleTextblockStyle}" Text="数据类型" />
  202. <Border
  203. BorderBrush="{StaticResource bordColor}"
  204. BorderThickness="1,0,1,0"
  205. Cursor="SizeWE" />
  206. </Grid>
  207. <Grid Grid.Column="4">
  208. <TextBlock Style="{StaticResource TitleTextblockStyle}" Text="报警" />
  209. <Border
  210. BorderBrush="{StaticResource bordColor}"
  211. BorderThickness="1,0,1,0"
  212. Cursor="SizeWE" />
  213. </Grid>
  214. <TextBlock
  215. Grid.Column="5"
  216. Style="{StaticResource TitleTextblockStyle}"
  217. Text="报警配置" />
  218. <Grid Grid.Column="6">
  219. <TextBlock Style="{StaticResource TitleTextblockStyle}" Text="{Binding TabName}" />
  220. <Border
  221. BorderBrush="{StaticResource bordColor}"
  222. BorderThickness="1,0,1,0"
  223. Cursor="SizeWE" />
  224. </Grid>
  225. <Border
  226. Grid.ColumnSpan="8"
  227. BorderBrush="{StaticResource bordColor}"
  228. BorderThickness="1,0,1,0" />
  229. </Grid>
  230. <!--#endregion-->
  231. <Grid Grid.Row="2">
  232. <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden">
  233. <ItemsControl ItemsSource="{Binding varialeInfos}">
  234. <ItemsControl.ItemTemplate>
  235. <DataTemplate>
  236. <Grid Name="gr" Height="30">
  237. <Grid.ColumnDefinitions>
  238. <ColumnDefinition Width="0.2*" />
  239. <ColumnDefinition />
  240. <ColumnDefinition Width="0.4*" />
  241. <ColumnDefinition Width="0.3*" />
  242. <ColumnDefinition Width="0.2*" />
  243. <ColumnDefinition Width="0.2*" />
  244. <ColumnDefinition Width="0.2*" />
  245. </Grid.ColumnDefinitions>
  246. <TextBlock
  247. Grid.Column="0"
  248. HorizontalAlignment="Center"
  249. VerticalAlignment="Center"
  250. Background="Transparent"
  251. FontSize="14"
  252. Foreground="{Binding IsRedundant, Converter={StaticResource tabConvert}}"
  253. Text="{Binding ID}" />
  254. <Grid Grid.Column="1" KeyDown="TextBox_KeyDown">
  255. <TextBox
  256. Width="{Binding DataContext.NameWidth, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  257. Foreground="{Binding IsRedundant, Converter={StaticResource tabConvert}}"
  258. IsEnabled="{Binding DataContext.IsEnable, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  259. Style="{StaticResource InputTextboxStyle}"
  260. TabIndex="{Binding ID}"
  261. Text="{Binding VarName}" />
  262. <Border
  263. BorderBrush="{StaticResource bordColor}"
  264. BorderThickness="1,0,1,0"
  265. Cursor="SizeWE" />
  266. </Grid>
  267. <TextBox
  268. Grid.Column="2"
  269. Width="{Binding DataContext.AddressWidth, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  270. Foreground="{Binding IsRedundant, Converter={StaticResource tabConvert}}"
  271. IsEnabled="{Binding DataContext.IsEnable, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  272. KeyDown="TextBox_KeyDown"
  273. Style="{StaticResource InputTextboxStyle}"
  274. TabIndex="{Binding ID}"
  275. Text="{Binding Address}" />
  276. <Grid Grid.Column="3">
  277. <ComboBox
  278. Name="cb"
  279. VerticalAlignment="Center"
  280. BorderBrush="Transparent"
  281. BorderThickness="1"
  282. FontFamily="楷体"
  283. FontSize="20"
  284. Foreground="{Binding IsRedundant, Converter={StaticResource tabConvert}}"
  285. IsEditable="False"
  286. IsEnabled="{Binding DataContext.IsEnable, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  287. ItemsSource="{Binding DataContext.dataType, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  288. SelectedValue="{Binding DataType}"
  289. Style="{StaticResource ComboBoxStyle}"
  290. Text="{Binding DataType}" />
  291. <Border
  292. BorderBrush="{StaticResource bordColor}"
  293. BorderThickness="1,0,1,0"
  294. Cursor="SizeWE" />
  295. </Grid>
  296. <CheckBox
  297. Grid.Column="4"
  298. Margin="0,6"
  299. HorizontalAlignment="Center"
  300. VerticalAlignment="Center"
  301. Background="#009dff"
  302. FontSize="16"
  303. Foreground="{Binding IsRedundant, Converter={StaticResource tabConvert}}"
  304. IsChecked="{Binding IsEnableAlarm}"
  305. IsEnabled="{Binding ElementName=cb, Path=Text, Converter={StaticResource IsEnableConvert}}"
  306. Template="{StaticResource CbTemplate}" />
  307. <!-- Content="{Binding IsEnableAlarm, Converter={StaticResource textDisplayConvert}}" -->
  308. <!--<TextBox
  309. Grid.Column="4"
  310. Foreground="{Binding IsRedundant, Converter={StaticResource tabConvert}}"
  311. Style="{StaticResource InputTextboxStyle}"
  312. Text="{Binding SlowAcceleration}" />-->
  313. <Grid Grid.Column="5">
  314. <Grid>
  315. <ToggleButton
  316. Name="tb"
  317. Width="{Binding RelativeSource={RelativeSource AncestorType=Grid, AncestorLevel=1}, Path=ActualWidth}"
  318. Height="{Binding RelativeSource={RelativeSource AncestorType=Grid, AncestorLevel=1}, Path=ActualHeight}"
  319. Background="Transparent"
  320. BorderThickness="0"
  321. Content="编辑"
  322. FontSize="14"
  323. IsChecked="{Binding IsOpen}"
  324. IsEnabled="{Binding IsEnableAlarm}"
  325. Style="{StaticResource EditToggleButtonStyle}" />
  326. </Grid>
  327. <!-- 当 StaysOpen 设置为 True 时 popup失去焦点的时候不会自动关闭 -->
  328. <Popup
  329. AllowsTransparency="True"
  330. Focusable="False"
  331. IsOpen="{Binding IsOpen}"
  332. Placement="Left"
  333. PlacementTarget="{Binding ElementName=tb}"
  334. StaysOpen="False">
  335. <Border Background="#081424" ClipToBounds="True">
  336. <Grid Margin="0">
  337. <Grid.Background>
  338. <ImageBrush ImageSource="/Resources/Images/边框1.png" />
  339. </Grid.Background>
  340. <Grid.RowDefinitions>
  341. <RowDefinition />
  342. <RowDefinition />
  343. <RowDefinition />
  344. </Grid.RowDefinitions>
  345. <!--#region 离散量报警设置-->
  346. <StackPanel
  347. Grid.Row="0"
  348. Margin="10"
  349. Orientation="Vertical"
  350. Visibility="{Binding DataType, Converter={StaticResource discreteAlarmConvert}}">
  351. <Grid Margin="5">
  352. <pry:TitleTextBlock />
  353. <TextBlock
  354. Margin="10,5,30,5"
  355. Background="Transparent"
  356. FontSize="16"
  357. Foreground="#dd01FFFF"
  358. Text="离散量报警设置" />
  359. </Grid>
  360. <Grid>
  361. <Grid.ColumnDefinitions>
  362. <ColumnDefinition />
  363. <ColumnDefinition />
  364. </Grid.ColumnDefinitions>
  365. <TextBlock
  366. Margin="5"
  367. Style="{StaticResource TextBlockStyle}"
  368. Text="选择触发模式:" />
  369. <ComboBox
  370. Grid.Column="1"
  371. Width="180"
  372. Margin="5"
  373. VerticalAlignment="Center"
  374. BorderBrush="#009dff"
  375. BorderThickness="1"
  376. FontFamily="楷体"
  377. FontSize="20"
  378. Foreground="#009dff"
  379. IsEditable="False"
  380. ItemsSource="{Binding DataContext.PopupDiscreteAlarmType, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  381. SelectedIndex="1"
  382. Style="{StaticResource ComboBoxStyle}"
  383. Text="{Binding DiscreteAlarmInfoSet.TrigAlarm}" />
  384. </Grid>
  385. <Grid>
  386. <Grid.ColumnDefinitions>
  387. <ColumnDefinition />
  388. <ColumnDefinition />
  389. <ColumnDefinition />
  390. </Grid.ColumnDefinitions>
  391. <TextBlock
  392. Grid.Column="0"
  393. Margin="5"
  394. Style="{StaticResource TextBlockStyle}"
  395. Text="输入报警信息:" />
  396. <TextBox
  397. Grid.Column="1"
  398. Grid.ColumnSpan="2"
  399. Style="{StaticResource TextBoxStyle}"
  400. Text="{Binding DiscreteAlarmInfoSet.AlarmInfo}" />
  401. </Grid>
  402. </StackPanel>
  403. <!--#endregion-->
  404. <!--#region 模拟量报警设置-->
  405. <StackPanel
  406. Grid.Row="1"
  407. Margin="10"
  408. Visibility="{Binding DataType, Converter={StaticResource analogAlarmConvert}}">
  409. <Grid Margin="5">
  410. <pry:TitleTextBlock />
  411. <TextBlock
  412. Margin="10,5,30,5"
  413. Background="Transparent"
  414. FontSize="16"
  415. Foreground="#dd01FFFF"
  416. Text="模拟量报警设置" />
  417. </Grid>
  418. <ItemsControl ItemsSource="{Binding AnalogAlarmModels}">
  419. <ItemsControl.ItemTemplate>
  420. <DataTemplate>
  421. <Grid Margin="0,0,0,8">
  422. <Grid.ColumnDefinitions>
  423. <ColumnDefinition />
  424. <ColumnDefinition />
  425. <ColumnDefinition />
  426. </Grid.ColumnDefinitions>
  427. <Grid.RowDefinitions>
  428. <RowDefinition />
  429. <RowDefinition />
  430. </Grid.RowDefinitions>
  431. <Border
  432. Grid.RowSpan="2"
  433. Grid.ColumnSpan="3"
  434. BorderBrush="#55009dff"
  435. BorderThickness="0,0,0,1" />
  436. <CheckBox
  437. Margin="5,5,0,0"
  438. HorizontalAlignment="Left"
  439. VerticalAlignment="Center"
  440. Background="#009dff"
  441. Content="{Binding AlarmTag}"
  442. FontSize="14"
  443. Foreground="#009dff"
  444. IsChecked="{Binding IsEnable}"
  445. Template="{StaticResource CbTemplate}" />
  446. <TextBlock
  447. Grid.Column="1"
  448. Margin="0,5,5,0"
  449. Style="{StaticResource TextBlockStyle}"
  450. Text="请输入报警值:" />
  451. <TextBox
  452. Grid.Column="2"
  453. Width="100"
  454. Margin="0,5,5,0"
  455. IsEnabled="{Binding IsEnable}"
  456. Style="{StaticResource TextBoxStyle}"
  457. Text="{Binding AlarmValue}" />
  458. <TextBlock
  459. Grid.Row="1"
  460. Grid.Column="0"
  461. Margin="5"
  462. Style="{StaticResource TextBlockStyle}"
  463. Text="输入报警信息:" />
  464. <TextBox
  465. Grid.Row="1"
  466. Grid.Column="1"
  467. Grid.ColumnSpan="2"
  468. Width="230"
  469. Height="35"
  470. Margin="5"
  471. IsEnabled="{Binding IsEnable}"
  472. Style="{StaticResource TextBoxStyle}"
  473. Text="{Binding AlarmInfo}" />
  474. </Grid>
  475. </DataTemplate>
  476. </ItemsControl.ItemTemplate>
  477. </ItemsControl>
  478. </StackPanel>
  479. <!--#endregion-->
  480. <!--#region 按钮控制-->
  481. <Grid Grid.Row="2" Margin="10">
  482. <Grid.ColumnDefinitions>
  483. <ColumnDefinition />
  484. <ColumnDefinition />
  485. </Grid.ColumnDefinitions>
  486. <Button
  487. Height="40"
  488. Margin="10,5,10,10"
  489. Command="{Binding CancelCommand}"
  490. Content="取消"
  491. FontFamily="楷体"
  492. FontSize="20"
  493. FontWeight="DemiBold"
  494. Foreground="#009dff"
  495. Style="{StaticResource FGImageButtonStyle}" />
  496. <Button
  497. Grid.Column="1"
  498. Height="40"
  499. Margin="10,5,10,10"
  500. Command="{Binding ConfirmCommand}"
  501. Content="确认"
  502. FontFamily="楷体"
  503. FontSize="20"
  504. FontWeight="DemiBold"
  505. Foreground="#009dff"
  506. Style="{StaticResource FGImageButtonStyle}" />
  507. </Grid>
  508. <!--#endregion-->
  509. </Grid>
  510. </Border>
  511. </Popup>
  512. <Border
  513. BorderBrush="{StaticResource bordColor}"
  514. BorderThickness="1,0,1,0"
  515. Cursor="SizeWE" />
  516. </Grid>
  517. <TextBlock
  518. Grid.Column="6"
  519. HorizontalAlignment="Center"
  520. VerticalAlignment="Center"
  521. Background="Transparent"
  522. FontSize="14"
  523. Foreground="{Binding IsRedundant, Converter={StaticResource tabConvert}}"
  524. Text="{Binding CurrentValue}"
  525. Visibility="{Binding DataContext.CurrentVisibility, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}" />
  526. <Button
  527. Grid.Column="6"
  528. Command="{Binding DataContext.RemoveCommand, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}"
  529. CommandParameter="{Binding}"
  530. Content="删除"
  531. FontSize="16"
  532. Style="{StaticResource ControlButtonStyle}"
  533. Visibility="{Binding DataContext.RemoveButVisiblity, RelativeSource={RelativeSource AncestorType=ItemsControl, Mode=FindAncestor}}" />
  534. <Border
  535. Grid.ColumnSpan="7"
  536. BorderBrush="{StaticResource bordColor}"
  537. BorderThickness="1,0,1,1" />
  538. </Grid>
  539. <DataTemplate.Triggers>
  540. <Trigger Property="IsMouseOver" Value="true">
  541. <Setter TargetName="gr" Property="Background" Value="#112AB2E7" />
  542. </Trigger>
  543. </DataTemplate.Triggers>
  544. </DataTemplate>
  545. </ItemsControl.ItemTemplate>
  546. </ItemsControl>
  547. </ScrollViewer>
  548. </Grid>
  549. </Grid>
  550. </UserControl>