ReadonlyGauge.xaml 1.0 KB

12345678910111213141516171819202122
  1. <UserControl x:Class="Aitex.Core.UI.Control.ReadonlyGauge"
  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"
  7. Height="22" Width="40" Name="readonlyGauge">
  8. <UserControl.RenderTransform>
  9. <RotateTransform x:Name="controlAngle" Angle="0" CenterX="20" CenterY="10"/>
  10. </UserControl.RenderTransform>
  11. <Grid>
  12. <Border Background="Transparent" BorderThickness="1">
  13. <Rectangle RadiusX="5" RadiusY="3" Stroke="Gray" Opacity="1" Name="rectBkground"/>
  14. </Border>
  15. <Label Name="controlValue" Content="0.00"
  16. Foreground="LightYellow" FontFamily="Arial,SimSun" FontSize="9"
  17. HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/>
  18. </Grid>
  19. </UserControl>