Skip to content

Set control type doesnt work for element not on the screen #9

@IeuanWalker

Description

@IeuanWalker

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions