A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
2.0 KiB

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="IntegrationTestApp.MainWindow"
Title="IntegrationTestApp">
<TabControl TabStripPlacement="Left" AutomationProperties.AutomationId="MainTabs">
<TabItem Header="Button">
<StackPanel>
<Button AutomationProperties.AutomationId="DisabledButton" IsEnabled="False">
Disabled Button
</Button>
<Button AutomationProperties.AutomationId="BasicButton">
Basic Button
</Button>
<Button AutomationProperties.AutomationId="ButtonWithTextBlock">
<TextBlock>Button with TextBlock</TextBlock>
</Button>
</StackPanel>
</TabItem>
<TabItem Header="CheckBox">
<StackPanel>
<CheckBox AutomationProperties.AutomationId="UncheckedCheckBox">Unchecked</CheckBox>
<CheckBox AutomationProperties.AutomationId="CheckedCheckBox" IsChecked="True">Checked</CheckBox>
<CheckBox AutomationProperties.AutomationId="ThreeStateCheckBox" IsThreeState="True" IsChecked="{x:Null}">ThreeState</CheckBox>
</StackPanel>
</TabItem>
<TabItem Header="ComboBox">
<StackPanel>
<ComboBox AutomationProperties.AutomationId="UnselectedComboBox">
<ComboBoxItem>Foo</ComboBoxItem>
<ComboBoxItem>Bar</ComboBoxItem>
</ComboBox>
<ComboBox AutomationProperties.AutomationId="SelectedIndex0ComboBox" SelectedIndex="0">
<ComboBoxItem>Foo</ComboBoxItem>
<ComboBoxItem>Bar</ComboBoxItem>
</ComboBox>
<ComboBox AutomationProperties.AutomationId="SelectedIndex1ComboBox" SelectedIndex="1">
<ComboBoxItem>Foo</ComboBoxItem>
<ComboBoxItem>Bar</ComboBoxItem>
</ComboBox>
</StackPanel>
</TabItem>
</TabControl>
</Window>