<UserControl x:Class="XHandler.View.MethodProperty.UltrasonicProperty"
|
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"
|
xmlns:local="clr-namespace:XHandler.View.MethodProperty"
|
xmlns:str="clr-namespace:XHandler.Properties"
|
xmlns:ctrls="clr-namespace:XHandler.Controls"
|
mc:Ignorable="d"
|
d:DesignHeight="600" d:DesignWidth="600" Loaded="UserControl_Loaded">
|
<ScrollViewer>
|
<Grid x:Name="grid">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="auto"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="120"/>
|
<ColumnDefinition Width="*"/>
|
<ColumnDefinition Width=".9*"/>
|
</Grid.ColumnDefinitions>
|
|
<!--命令标签-->
|
<TextBlock Grid.Row="0" Grid.Column="0" Text="{x:Static str:Resources.strCommandTag}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBox Grid.Row="0" Grid.Column="1" x:Name="tbxCommandLabel" Height="30" FontSize="16" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}"
|
BorderThickness="0" Text="{Binding label, Mode=TwoWay}" IsEnabled="False"/>
|
|
<!--命令名称-->
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{x:Static str:Resources.strCommandName}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBox Grid.Row="1" Grid.Column="1" x:Name="tbxCommandName" Height="30" FontSize="16" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}"
|
BorderThickness="0" TextChanged="tbxCommandName_TextChanged">
|
<TextBox.Text>
|
<Binding Path="name" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:AspirateValidationRule ValidateType="tbxCommandName"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="1" Grid.Column="2" Text="{Binding ElementName=tbxCommandName,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5 5 5 0"/>
|
|
<!--超声子页面-->
|
<Grid Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3" x:Name="gridProperty" Margin="0 0"/>
|
</Grid>
|
</ScrollViewer>
|
</UserControl>
|