A11YTools icon indicating copy to clipboard operation
A11YTools copied to clipboard

Set control type doesnt work for element not on the screen

Open IeuanWalker opened this issue 4 years ago • 0 comments

Set control type method doesn't work for controls that has been created in C# and hasn't been added to the page yet.

For example -

StackLayout test = new StackLayout();
test.Children.Add(new Label { Text = "Dynamic test" });

_accessibilityService.SetControlType(test, ControlType.Button);

TestContainer.Children.Add(test);

Not sure how to work around that.

IeuanWalker avatar Jul 02 '21 17:07 IeuanWalker