AITPressureMeter.xaml 1.5 KB

12345678910111213141516171819202122
  1. <UserControl x:Class="MECF.Framework.UI.Client.Ctrlib.UnitControls.AITPressureMeter"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:unitControls="clr-namespace:MECF.Framework.UI.Client.Ctrlib.UnitControls"
  7. mc:Ignorable="d" d:DesignHeight="24" d:DesignWidth="45" BorderThickness="1" x:Name="self">
  8. <UserControl.Resources>
  9. <unitControls:AITPressureMeterFillColorConverter x:Key="AITPressureMeterFillColorConverter"/>
  10. </UserControl.Resources>
  11. <Grid Cursor="Hand" Opacity="1" MouseEnter="Grid_MouseEnter">
  12. <Border Style="{x:Null}" Background="Transparent" x:Name="bdRectangle" BorderThickness="1">
  13. <Rectangle Style="{x:Null}" RadiusX="2" RadiusY="2" Name="rectBkground" Stroke="{Binding ElementName=self, Path=DeviceData, Converter={StaticResource AITPressureMeterFillColorConverter}}"
  14. Margin="1" Opacity="1" Fill="SteelBlue" StrokeThickness="2"/>
  15. </Border>
  16. <Label Content="{Binding ElementName=self, Path=DeviceData.Display}"
  17. HorizontalContentAlignment="Center" x:Name="labelValue" Margin="0,-2,-2,-2"
  18. VerticalContentAlignment="Center" Foreground="White" />
  19. </Grid>
  20. </UserControl>