24 lines
2.0 KiB
XML
24 lines
2.0 KiB
XML
<UserControl x:Class="DTS.Common.Controls.TestIdControl"
|
|
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" d:DesignWidth="800" x:Name="TestIdInfo" d:DesignHeight="703">
|
|
<UserControl.Resources>
|
|
<Style TargetType="TextBox" BasedOn="{StaticResource PageContentTextBoxStyle}" />
|
|
<Style TargetType="TextBlock" BasedOn="{StaticResource PageContentTextStyle}" />
|
|
<Style TargetType="CheckBox" BasedOn="{StaticResource PageContentCheckBoxStyle}" />
|
|
<Style TargetType="PasswordBox" BasedOn="{StaticResource PageContentPasswordBoxStyle}" />
|
|
<Style TargetType="Button" BasedOn="{StaticResource PageContentButton}" />
|
|
</UserControl.Resources>
|
|
<StackPanel Orientation="Horizontal" AutomationProperties.AutomationId="StackPanelTestIdBuilder" DataContext="{Binding ElementName=TestIdInfo}">
|
|
<ComboBox ItemsSource="{Binding AllTestIdPrefixSuffixValues}" Width="200" SelectedItem="{Binding SelectedTestIdPrefixValueItem}"
|
|
AutomationProperties.AutomationId="TestIdPrefixComboBox"/>
|
|
<TextBlock Text="{Binding TestSetupLabel, FallbackValue='Awesome Sauce'}" Visibility="{Binding TestSetupLabelVisibility, FallbackValue=Collapsed}" AutomationProperties.AutomationId="TestIdTextBox"/>
|
|
<TextBox Text="{Binding TestIdEditableText}" Width="150" Style="{StaticResource PageContentTextBoxStyleId}"
|
|
AutomationProperties.AutomationId="TestIdTextBox"/>
|
|
<ComboBox ItemsSource="{Binding AllTestIdPrefixSuffixValues}" Width="200" SelectedItem="{Binding SelectedTestIdSuffixValueItem}"
|
|
AutomationProperties.AutomationId="TestIdSuffixComboBox"/>
|
|
</StackPanel>
|
|
</UserControl>
|