GroupTextBoxControl.xaml 1.7 KB

1234567891011121314151617181920212223
  1. <UserControl x:Class="CyberX8_Themes.UserControls.GroupTextBoxControl"
  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. mc:Ignorable="d" Name="self"
  9. d:DesignHeight="70" Width="486">
  10. <Grid>
  11. <GroupBox Grid.Row="3" Header="{Binding ElementName=self,Path=Title}" IsEnabled="{Binding Enable}">
  12. <Grid>
  13. <Rectangle x:Name="RectangleSetPoint" Fill="Transparent" Stroke="Transparent" StrokeThickness="1" HorizontalAlignment="Left"
  14. VerticalAlignment="Top" Width="435" Height="36" Margin="10,0,0,0"/>
  15. <Control:IntegerTextBox Name="txtValue" Value="{Binding ElementName=self,Path=IntValue,Mode=TwoWay}" Height="30" VerticalAlignment="Top" Margin="18,3,55,0"/>
  16. <Label Content="{Binding ElementName=self,Path=Unit}" HorizontalAlignment="Right" VerticalAlignment="Top" Height="30" Width="55" Margin="0,3,0,0"></Label>
  17. <Label Content="{Binding ElementName=self,Path=MinValue}" HorizontalAlignment="Left" Width="40" Margin="17,31,0,-9"/>
  18. <Label Content="{Binding ElementName=self,Path=MaxValue}" HorizontalAlignment="Right" Width="40" Margin="0,31,30,-9"/>
  19. </Grid>
  20. </GroupBox>
  21. </Grid>
  22. </UserControl>