<UserControl x:Class="XHandler.View.MethodProperty.LoopProperty"
|
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"
|
mc:Ignorable="d"
|
d:DesignHeight="450" d:DesignWidth="800" Loaded="UserControl_Loaded">
|
<Grid>
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="40"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="100"/>
|
<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"/>
|
<TextBlock Grid.Row="1" Grid.Column="0" Text="{x:Static str:Resources.strCommandName}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="{x:Static str:Resources.strVariable}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBlock Grid.Row="3" Grid.Column="0" Text="{x:Static str:Resources.strStartValue}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBlock Grid.Row="4" Grid.Column="0" Text="{x:Static str:Resources.strEndValue}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
<TextBlock Grid.Row="5" Grid.Column="0" Text="{x:Static str:Resources.strIncrement}" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0 0 15 0"/>
|
|
<TextBox Grid.Row="0" Grid.Column="1" x:Name="tbxLabel" Height="30" FontSize="16" VerticalContentAlignment="Center" BorderThickness="0" Background="{DynamicResource lightGrayBrush}"
|
Text="{Binding label, Mode=TwoWay}" IsEnabled="False"/>
|
<!--<TextBox Grid.Row="1" Grid.Column="1" x:Name="tbxName" Height="30" FontSize="16" VerticalContentAlignment="Center" BorderThickness="0" Background="{DynamicResource lightGrayBrush}"
|
Text="{Binding name, Mode=TwoWay}" TextChanged="tbxName_TextChanged"/>-->
|
<TextBox x:Name="tbxName" Grid.Row="1" Grid.Column="1" Height="30" FontSize="16" VerticalContentAlignment="Center" Background="{DynamicResource lightGrayBrush}"
|
BorderThickness="0" TextChanged="tbxName_TextChanged" >
|
<TextBox.Text>
|
<Binding Path="name" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" NotifyOnValidationError="True" >
|
<Binding.ValidationRules>
|
<local:MethodPropertyValidationRule ValidateType="1,6@[200]"/>
|
</Binding.ValidationRules>
|
</Binding>
|
</TextBox.Text>
|
</TextBox>
|
<TextBlock Grid.Row="1" Grid.Column="2" x:Name="xnError" Text="{Binding ElementName=tbxName,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5 5 5 0"/>
|
|
<TextBox Grid.Row="2" Grid.Column="1" x:Name="tbxVariableName" Height="30" FontSize="16" VerticalContentAlignment="Center" BorderThickness="0" Background="{DynamicResource lightGrayBrush}" TextChanged="tbxVariableName_TextChanged"/>
|
<TextBlock Grid.Row="2" Grid.Column="2" x:Name="xvnError" Text="{Binding ElementName=tbxVariableName,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5 5 5 0"/>
|
|
<TextBox Grid.Row="3" Grid.Column="1" x:Name="tbxStartValue" Height="30" FontSize="16" VerticalContentAlignment="Center" BorderThickness="0" Background="{DynamicResource lightGrayBrush}" TextChanged="tbxStartValue_TextChanged"/>
|
<TextBlock Grid.Row="3" Grid.Column="2" x:Name="xsvError" Text="{Binding ElementName=tbxStartValue,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5 5 5 0"/>
|
|
<TextBox Grid.Row="4" Grid.Column="1" x:Name="tbxEndValue" Height="30" FontSize="16" VerticalContentAlignment="Center" BorderThickness="0" Background="{DynamicResource lightGrayBrush}" TextChanged="tbxEndValue_TextChanged"/>
|
<TextBlock Grid.Row="4" Grid.Column="2" x:Name="xevError" Text="{Binding ElementName=tbxEndValue,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5 5 5 0"/>
|
|
<TextBox Grid.Row="5" Grid.Column="1" x:Name="tbxIncrement" Height="30" FontSize="16" VerticalContentAlignment="Center" BorderThickness="0" Background="{DynamicResource lightGrayBrush}" TextChanged="tbxIncrement_TextChanged"/>
|
<TextBlock Grid.Row="5" Grid.Column="2" x:Name="xiError" Text="{Binding ElementName=tbxIncrement,Path=(Validation.Errors)[0].ErrorContent}" Foreground="Red" FontSize="16"
|
VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5 5 5 0"/>
|
|
</Grid>
|
</UserControl>
|