This repository was archived by the owner on May 1, 2024. It is now read-only.

Description
Description
We have created a custom Layout to add the ContentView Label when select the view label text not accessible.
[XAML]
<local:CustomView AutomationId="CustomLayout" VerticalOptions="Center" HeightRequest="300" WidthRequest="300" BackgroundColor="Aqua" >
<ContentView BackgroundColor="Yellow" HeightRequest="300" WidthRequest="300">
<Label Text="LabelText" FontSize="25" HorizontalOptions="CenterAndExpand" VerticalTextAlignment="Center"/>
</ContentView>
</local:CustomView>
[C#]
public class CustomView : StackLayout
{
public CustomView()
{
this.SetValue(AutomationProperties.IsInAccessibleTreeProperty, true);
AutomationProperties.SetName(this, this.AutomationId + "LayoutItem 1 of 1");
}
}
If enable IsInAccessibleTreeProperty for both the CustomView and ContentView. The voice over will be only Label text.
Expected Behavior
While select the view the voice over should be LabelText + LayoutItem 1 of 1.
Actual Behavior
The child view text not accessible.
Basic Information
XF version 4.8
Environment
Visual Studio 2019
Screenshots

Sample LInk
Accessibilitydemo.zip