Files
DP44/Common/DTS.Common/Controls/TestIDTestBox.xaml

17 lines
1.1 KiB
Plaintext
Raw Normal View History

2026-04-17 14:55:32 -04:00
<UserControl x:Class="DTS.Common.Controls.TestIDTextBox"
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:DTS.Common.Controls"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
mc:Ignorable="d"
d:DesignHeight="50" d:DesignWidth="300"
FocusManager.IsFocusScope="True" x:Name="TestIdTextBoxControl">
<UserControl.Resources>
<sys:Int32 x:Key="TESTID_LENGTH_MAX">50</sys:Int32>
</UserControl.Resources>
<TextBox x:Name="tbTestId" Text="{Binding ElementName=TestIdTextBoxControl, Path=Text, UpdateSourceTrigger=PropertyChanged}" BorderThickness="1,1,1,1" VerticalContentAlignment="Center" MaxLength="{StaticResource TESTID_LENGTH_MAX}"
PreviewTextInput="tbTestId_PreviewTextInput"/>
</UserControl>