AnalogControl2Jet.xaml 1.8 KB

1234567891011121314151617181920212223242526
  1. <UserControl x:Class="Aitex.Core.UI.Control.AnalogControl2Jet"
  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:c="clr-namespace:CalcBinding;assembly=CalcBinding"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:converters="clr-namespace:MECF.Framework.UI.Core.Converters"
  7. mc:Ignorable="d" Height="38" Width="45" BorderThickness="1" x:Name="Self">
  8. <UserControl.Resources>
  9. <converters:BoolVisibilityConverter x:Key="boolVisibilityConverter"/>
  10. </UserControl.Resources>
  11. <Grid Height="38" MouseLeftButtonUp="Grid_MouseLeftButtonUp" Cursor="Hand" Opacity="1" MouseEnter="Grid_MouseEnter">
  12. <Grid Height="20" Margin="0,-20,0,0">
  13. <Border Background="Transparent" x:Name="bdRectangle" BorderThickness="1">
  14. <Rectangle RadiusX="2" RadiusY="2" Name="rectBkground" Stroke="Gray" Margin="1" Opacity="1" Fill="Green" StrokeThickness="1"/>
  15. </Border>
  16. <TextBlock FontFamily="Arial,SimSun" FontSize="14" Text="{Binding ElementName=Self, Path=ShowValue ,Mode=OneWay}" VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="labelValue1" Foreground="Black">
  17. </TextBlock>
  18. </Grid>
  19. <Grid Height="18" Margin="1,14,1,1">
  20. <Rectangle Name="rectSetPoint" RadiusX="2" RadiusY="2" Stroke="Gray" Margin="1" Opacity="1" Fill="#999999" StrokeThickness="1"/>
  21. <TextBlock Text="0.0" FontFamily="Arial,SimSun" FontSize="10" VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="labelSetPoint" Foreground="Black" />
  22. </Grid>
  23. </Grid>
  24. </UserControl>