|
6 | 6 | xmlns:testhelpers="using:AppTestAutomationHelpers" |
7 | 7 | Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" |
8 | 8 | mc:Ignorable="d"> |
| 9 | + <Page.Resources> |
| 10 | + <Style x:Key="AutomationHelperStyle" |
| 11 | + TargetType="Control"> |
| 12 | + <Setter Property="IsTabStop" Value="False" /> |
| 13 | + <Setter Property="IsHitTestVisible" Value="False" /> |
| 14 | + <Setter Property="Width" Value="0" /> |
| 15 | + <Setter Property="Height" Value="0" /> |
| 16 | + <Setter Property="Opacity" Value="0" /> |
| 17 | + </Style> |
| 18 | + </Page.Resources> |
9 | 19 |
|
10 | 20 | <Grid> |
11 | 21 | <testhelpers:TestAutomationHelpersPanel /> |
12 | | - <Button x:Name="GoBackInvokerButton" |
13 | | - Width="0" |
14 | | - Height="0" |
15 | | - AutomationProperties.AutomationId="__GoBackInvoker" |
16 | | - IsHitTestVisible="False" |
17 | | - IsTabStop="False" |
18 | | - Click="GoBackInvokerButton_Click" |
19 | | - Opacity="0" /> |
20 | | - |
| 22 | + <StackPanel Width="0" |
| 23 | + Height="0" |
| 24 | + HorizontalAlignment="Stretch" |
| 25 | + VerticalAlignment="Top" |
| 26 | + Orientation="Horizontal"> |
| 27 | + <Button x:Name="GoBackInvokerButton" |
| 28 | + AutomationProperties.AutomationId="__GoBackInvoker" |
| 29 | + Click="GoBackInvokerButton_Click" |
| 30 | + Style="{StaticResource AutomationHelperStyle}" /> |
| 31 | + <Button x:Name="CloseAppInvokerButton" |
| 32 | + AutomationProperties.AutomationId="__CloseAppInvoker" |
| 33 | + Click="CloseAppInvokerButton_Click" |
| 34 | + Style="{StaticResource AutomationHelperStyle}" /> |
| 35 | + </StackPanel> |
21 | 36 | <Frame x:Name="navigationFrame" |
22 | 37 | IsNavigationStackEnabled="False" |
23 | 38 | Navigated="NavigationFrame_Navigated" |
|
0 commit comments