Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

AutomationProperties Name for ToolbarItem (iOS)

$
0
0

My toolbar item doesn't get read aloud on iOS. It just says "Taste" (button in German) when clicking it.

My code:

var toolbarItemWeiter = new ToolbarItem("Continue", "PATH_TO_MY_IMAGE", SomeAction, ToolbarItemOrder.Primary);
toolbarItemWeiter.Text = "Continue";
ToolbarItems.Add(toolbarItemWeiter);

I even tried this:

AutomationProperties.SetIsInAccessibleTree(toolbarItemWeiter, true);
AutomationProperties.SetName(toolbarItemWeiter, "Continue");

Still nothing. What am I doing wrong?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>