MfcControl.xaml 1.4 KB

12345678910111213141516171819202122
  1. <UserControl x:Class="MECF.Framework.UI.Client.Ctrlib.UnitControls.MfcControl"
  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="100" BorderThickness="1">
  7. <Grid MouseLeftButtonUp="Grid_MouseLeftButtonUp" Cursor="Hand" Opacity="1" MouseEnter="Grid_MouseEnter">
  8. <Grid.RowDefinitions>
  9. <RowDefinition></RowDefinition>
  10. <RowDefinition></RowDefinition>
  11. </Grid.RowDefinitions>
  12. <Grid Grid.Row="0">
  13. <Rectangle RadiusX="2" RadiusY="2" Name="rectBkground" Stroke="Gray" Margin="0" Opacity="1" Fill="Green" StrokeThickness="2"/>
  14. <Label Content="0.0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" x:Name="labelValue" Margin="0,-1,-2,0" Foreground="White" />
  15. </Grid>
  16. <Grid Grid.Row="1">
  17. <Rectangle Name="rectSetPoint" RadiusX="2" RadiusY="2" Stroke="Gray" Margin="0" Opacity="1" Fill="CadetBlue" StrokeThickness="2"/>
  18. <Label Content="0.0" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" x:Name="labelSetPoint" Margin="0,-2,-2,0" Foreground="DarkSlateGray" />
  19. </Grid>
  20. </Grid>
  21. </UserControl>