Accessibility value - Xamarin
Xamarin Forms elements such as Button
and Entry
automatically include an accessibility value. When you make custom elements you have to set these properties yourself.
However, there is no dedicated property to set an accessibility value. You can embed the value inside the label by using MultiBinding
inside the AutomationProperties.Name
property.
<Label
<AutomationProperties.Name>
<MultiBinding StringFormat="{}{0}, {1}">
<Binding Source="The value is: " />
<Binding Source="{BindingValue}" />
</MultiBinding>
</AutomationProperties.Name>
</Label>