1234567891011121314151617181920212223242526272829303132333435363738 |
- <UserControl x:Class="MECF.Framework.UI.Core.CommonControl.AITScDoubleRow"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- mc:Ignorable="d"
- x:Name="self"
- d:DesignHeight="30" d:DesignWidth="450">
-
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="{Binding ElementName=self,Path=NameWidth }" />
- <ColumnDefinition Width="{Binding ElementName=self,Path=FeedbackWidth }" />
- <ColumnDefinition Width="{Binding ElementName=self,Path=SetPointWidth }" />
- <ColumnDefinition Width="60" />
- </Grid.ColumnDefinitions>
- <Rectangle Grid.Column="0" Fill="{DynamicResource Table_BG_Title}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
- <Border Grid.Column="0" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="1,0,1,1"></Border>
- <TextBlock Grid.Column="0" Text="{Binding ElementName=self, Path=ScName }" TextAlignment="Left" VerticalAlignment="Center" FontSize="13" Foreground="Black" Margin="10,0"/>
- <Rectangle Grid.Column="1" Fill="{DynamicResource Table_BG_Content}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
- <Border Grid.Column="1" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
- <TextBlock Grid.Column="1" TextAlignment="Center" VerticalAlignment="Center" FontSize="13" Width="{Binding ElementName=self,Path=FeedbackWidth }" Text="{Binding ElementName=self,Path=ScFeedback, StringFormat={}{0:F0}}" Margin="10,0"/>
- <Rectangle x:Name="RectangleSetPoint" Grid.Column="2" Fill="{DynamicResource Table_BG_Content}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
- <Border Grid.Column="2" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
- <TextBox Grid.Column="2" PreviewTextInput="OnPreviewTextInput" x:Name="InputSetPoint" HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center" TextAlignment="Center" FontSize="13" Width="{Binding ElementName=self,Path=SetPointWidth }"
- Height="25" Margin="5,3" Padding="0,0,0,0" Text="{Binding ElementName=self,Path=ScSetPoint,UpdateSourceTrigger=PropertyChanged}" />
- <Rectangle Grid.Column="3" Fill="{DynamicResource Table_BG_Content}" Margin="0" Stroke="Transparent" StrokeThickness="1"></Rectangle>
- <Border Grid.Column="3" Margin="0" BorderBrush="{DynamicResource Table_BD}" BorderThickness="0,0,1,1"></Border>
- <Button Grid.Column="3" Content="Set" VerticalAlignment="Center" FontSize="13" Width="50" Height="22" Margin="2" Click="Button_Click"/>
- </Grid>
- </UserControl>
|