AITScComboBoxRow.xaml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <UserControl x:Class="MECF.Framework.UI.Core.CommonControl.AITScComboBoxRow"
  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="60" />
  15. </Grid.ColumnDefinitions>
  16. <Rectangle Grid.Column="0" Fill="{DynamicResource Table_BG_Title}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
  17. <Border Grid.Column="0" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1"></Border>
  18. <TextBlock Grid.Column="0" TextAlignment="Left" VerticalAlignment="Center" FontSize="13" Text="{Binding ElementName=self, Path=ScName }" Foreground="Black" Margin="10,0" />
  19. <Rectangle Grid.Column="1" Fill="{DynamicResource Table_BG_Content}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
  20. <Border Grid.Column="1" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
  21. <TextBlock Grid.Column="1" TextAlignment="Center" VerticalAlignment="Center" FontSize="13" Width="{Binding ElementName=self,Path=FeedbackWidth }" Text="{Binding ElementName=self,Path=ScFeedback}" Margin="10,0"/>
  22. <Rectangle Grid.Column="2" Fill="{DynamicResource Table_BG_Content}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
  23. <Border Grid.Column="2" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
  24. <ComboBox Name="cmb" Grid.Column="2" HorizontalContentAlignment="Center" IsEditable="False" VerticalContentAlignment="Center" FontSize="13" Width="{Binding ElementName=self,Path=SetPointWidth }" ItemsSource="{Binding ElementName=self,Path=ScItemSource}" Text="{Binding ElementName=self,Path=ScSetPoint}" />
  25. <Rectangle Grid.Column="3" Fill="{DynamicResource Table_BG_Content}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
  26. <Border Grid.Column="3" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
  27. <Button Grid.Column="3" Content="Set" VerticalAlignment="Center" FontSize="13" Width="50" Height="22" Margin="2" Click="Button_Click"/>
  28. </Grid>
  29. </UserControl>