Accessibility label - .NET MAUI

In MAUI, you can set an accessibility label by using the SemanticProperties.Description property.

<Control 
  SemanticProperties.Description="Appt" />

As an alternative, you can link a label by setting IsInAccessibleTree to false and setting SemanticProperties.Description the value of the label.

<Image
    Source="appt.png"
    SemanticProperties.Description="{Binding Source={x:Reference Welcome}, Path=Text}"
    HeightRequest="200"
    HorizontalOptions="Center" />

<Label
    x:Name="Welcome"
    AutomationProperties.IsInAccessibleTree="False"
    Text="Welcome to Appt"
    FontSize="18"
    HorizontalOptions="Center" />

Note: SemanticProperties.Description will supersede the value of AutomationProperties.IsInAccessibleTree.

In the sample below, the text from SemanticProperties.Description will be spoken regardless of the value of AutomationProperties.IsInAccessibleTree.

<Label
    x:Name="Welcome"
    AutomationProperties.IsInAccessibleTree="False"
    SemanticProperties.Description="Welcome to Appt (will be sproken)"
    Text="Welcome to Appt"
    FontSize="18"
    HorizontalOptions="Center" />