AutomationPage.axaml 888 B

1234567891011121314151617
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. x:Class="IntegrationTestApp.Pages.AutomationPage">
  7. <StackPanel>
  8. <TextBlock Name="TextBlockWithName">TextBlockWithName</TextBlock>
  9. <TextBlock Name="NotTheAutomationId" AutomationProperties.AutomationId="TextBlockWithNameAndAutomationId">
  10. TextBlockWithNameAndAutomationId
  11. </TextBlock>
  12. <TextBlock Name="TextBlockAsLabel">Label for TextBox</TextBlock>
  13. <TextBox Name="LabeledByTextBox" AutomationProperties.LabeledBy="{Binding #TextBlockAsLabel}">
  14. Foo
  15. </TextBox>
  16. </StackPanel>
  17. </UserControl>