GroupDigitalBoxControl.xaml 1.9 KB

12345678910111213141516171819202122232425262728
  1. <UserControl x:Class="CyberX8_Themes.UserControls.GroupDigitalBoxControl"
  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:local="clr-namespace:CyberX8_Themes.UserControls"
  7. xmlns:Control="clr-namespace:MECF.Framework.UI.Core.Control;assembly=MECF.Framework.UI.Core"
  8. xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
  9. mc:Ignorable="d" Name="self"
  10. d:DesignHeight="70" Width="486">
  11. <UserControl.Resources>
  12. <converters:DecimalPrecisionConverter x:Key="decimalPrecisionConverter"/>
  13. </UserControl.Resources>
  14. <Grid>
  15. <GroupBox Grid.Row="3" Header="{Binding ElementName=self,Path=Title}" IsEnabled="{Binding Enable}">
  16. <Grid>
  17. <Rectangle x:Name="RectangleSetPoint" Fill="Transparent" Stroke="Transparent" StrokeThickness="1" HorizontalAlignment="Left"
  18. VerticalAlignment="Top" Width="435" Height="36" Margin="10,0,0,0"/>
  19. <Control:NumbericTextBox Name="txtValue" Value="{Binding ElementName=self,Path=DigitalValue,Mode=TwoWay}" Height="30" VerticalAlignment="Top" Margin="18,3,55,0"/>
  20. <Label Content="{Binding ElementName=self,Path=Unit}" HorizontalAlignment="Right" VerticalAlignment="Top" Height="30" Width="55" Margin="0,3,0,0"></Label>
  21. <Label Content="{Binding ElementName=self,Path=MinValue}" HorizontalAlignment="Left" Width="40" Margin="17,31,0,-9"/>
  22. <Label Content="{Binding ElementName=self,Path=MaxValue}" HorizontalAlignment="Right" Width="40" Margin="0,31,30,-9"/>
  23. </Grid>
  24. </GroupBox>
  25. </Grid>
  26. </UserControl>