TVControl.xaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <UserControl x:Class="MECF.Framework.UI.Client.Ctrlib.UnitControls.TVControl"
  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. mc:Ignorable="d" d:DesignHeight="70" d:DesignWidth="120" BorderThickness="1" x:Name="self">
  7. <Grid>
  8. <Grid.ColumnDefinitions>
  9. <ColumnDefinition Width="50"></ColumnDefinition>
  10. <ColumnDefinition></ColumnDefinition>
  11. </Grid.ColumnDefinitions>
  12. <Grid Width="36" Height="36" HorizontalAlignment="Center" Grid.Column="0" Background=" Transparent" Cursor="Hand" MouseEnter="Grid_MouseEnter" MouseLeftButtonUp="Grid_MouseLeftButtonUp">
  13. <Grid.RenderTransform>
  14. <RotateTransform x:Name="rotateTransform" Angle="20" CenterX="18" CenterY="18" />
  15. </Grid.RenderTransform>
  16. <Ellipse Stroke="Black" Fill="White" Height="34" Width="34" />
  17. <Line X1="3" Y1="17" X2="31" Y2="17" Stroke="Black" StrokeThickness="1.2" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
  18. <Line X1="3" Y1="17" X2="9" Y2="15" Stroke="Black" StrokeThickness="1.2" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
  19. <Line X1="3" Y1="17" X2="9" Y2="19" Stroke="Black" StrokeThickness="1.2" StrokeStartLineCap="Round" StrokeEndLineCap="Round" />
  20. </Grid>
  21. <Grid Grid.Column="1">
  22. <Grid MouseLeftButtonUp="Grid_MouseLeftButtonUp" Cursor="Hand" Opacity="1" MouseEnter="Grid_MouseEnter">
  23. <Grid.RowDefinitions>
  24. <RowDefinition></RowDefinition>
  25. <RowDefinition></RowDefinition>
  26. </Grid.RowDefinitions>
  27. <Grid Grid.Row="0">
  28. <Rectangle RadiusX="2" RadiusY="2" Name="rectPosition" Stroke="Gray" Margin="0" Opacity="1" Fill="Green" StrokeThickness="2"/>
  29. <Label Content="0.0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" x:Name="PositionValue" Margin="0,-1,-2,0" Foreground="White" />
  30. </Grid>
  31. <Grid Grid.Row="1">
  32. <Rectangle Name="rectPressure" RadiusX="2" RadiusY="2" Stroke="Gray" Margin="0" Opacity="1" Fill="SteelBlue" StrokeThickness="2"/>
  33. <Label Content="0.0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" x:Name="PressureValue" Margin="0,-2,-2,0" Foreground="White" />
  34. </Grid>
  35. </Grid>
  36. </Grid>
  37. </Grid>
  38. </UserControl>