AITScReadOnlyDoubleRow.xaml 2.1 KB

123456789101112131415161718192021222324252627282930
  1. <UserControl x:Class="MECF.Framework.UI.Core.CommonControl.AITScReadOnlyDoubleRow"
  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" Grid.ColumnSpan="3" Fill="#95B3D7" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  19. <TextBlock Grid.Column="1" Grid.ColumnSpan="3" TextAlignment="Center" FontSize="13" Width="88" 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" Margin="0" Stroke="White" StrokeThickness="1"></Rectangle>
  21. <TextBox Grid.Column="2" PreviewTextInput="OnPreviewTextInput" TextAlignment="Center" FontSize="11" Width="80" 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>