AITScBoolRow.xaml 2.0 KB

123456789101112131415161718192021222324252627282930
  1. <UserControl x:Class="MECF.Framework.UI.Core.CommonControl.AITScBoolRow"
  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. x:Name="self"
  8. d:DesignHeight="30" d:DesignWidth="450">
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="{Binding ElementName=self,Path=NameWidth }" />
  12. <ColumnDefinition Width="{Binding ElementName=self,Path=FeedbackWidth }" />
  13. <ColumnDefinition Width="{Binding ElementName=self,Path=SetPointWidth }" />
  14. <ColumnDefinition Width="{Binding ElementName=self,Path=CommandWidth }" />
  15. </Grid.ColumnDefinitions>
  16. <Rectangle Grid.Column="0" Fill="#376092" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  17. <TextBlock Grid.Column="0" FontSize="15" Text="{Binding ElementName=self, Path=ScName }" Foreground="White" />
  18. <Rectangle Grid.Column="1" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  19. <CheckBox Grid.Column="1" IsEnabled="False" IsChecked="{Binding ElementName=self, Path=ScFeedback}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="11" />
  20. <Rectangle Grid.Column="2" x:Name="RectangleSetPoint" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  21. <CheckBox Grid.Column="2" IsChecked="{Binding ElementName=self, Path=ScSetPoint}" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="11" />
  22. <Rectangle Grid.Column="3" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  23. <Button Grid.Column="3" Content="Set" VerticalAlignment="Center" FontSize="16" Width="{Binding ElementName=self, Path=CommandWidth}" Height="26" Margin="2" Click="Button_Click"/>
  24. </Grid>
  25. </UserControl>