Accessibility value - .NET MAUI
In MAUI, elements such as Button
and Entry
automatically include an accessibility value. When you create 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 SemanticProperties.Description
property.
<Label>
<SemanticProperties.Description>
<MultiBinding StringFormat="{}{0}, {1}">
<Binding Source="The value is: " />
<Binding Source="{BindingValue}" />
</MultiBinding>
</SemanticProperties.Description>
</Label>