AITScDoubleRow.xaml 2.2 KB

1234567891011121314151617181920212223242526272829303132
  1. <UserControl x:Class="MECF.Framework.UI.Core.CommonControl.AITScDoubleRow"
  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. <TextBlock Grid.Column="1" TextAlignment="Center" FontSize="20" Width="{Binding ElementName=self,Path=FeedbackWidth }" Height="25" Margin="3" Padding="0,0,0,0" Text="{Binding ElementName=self,Path=ScFeedback, StringFormat={}{0:F0}}" />
  20. <Rectangle Grid.Column="2" Fill="#95B3D7" x:Name="RectangleSetPoint" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  21. <TextBox Grid.Column="2" PreviewTextInput="OnPreviewTextInput" x:Name="InputSetPoint" TextAlignment="Center" FontSize="20" Width="{Binding ElementName=self,Path=SetPointWidth }" Height="25" Margin="3,3,0,0" Padding="0,0,0,0" Text="{Binding ElementName=self,Path=ScSetPoint}" />
  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>