Skip to content

CanvasControl & CanvasVirtualControl does not disable the accessibility view. #491

@coder89

Description

@coder89

Both canvas controls contain XAML control. And that inner control does not have accessibility view set to "Raw" which hides it from the Narrator. Because of that if user enables the Narrator and starts navigating with "Caps + Left/Right arrow key" user will hear "Image" and because that image is hidden under the canvas control implementation, apps would have to try to workaround this issue like we did in our app (on page load we execute this code):

auto image = m_win2dCanvas->Content;
if (image != nullptr)
{
image->IsDoubleTapEnabled = false;
image->IsHitTestVisible = false;
image->IsHoldingEnabled = false;
image->IsRightTapEnabled = false;
image->IsTapEnabled = false;
image->SetValue(Control::IsTabStopProperty, false);
image->SetValue(AutomationProperties::AccessibilityViewProperty, AccessibilityView::Raw);
}

This should prevent the inner Image control from being focused, tapped, clicked and navigated in the Narrator mode. This is really important for Microsoft that is pushing for apps being more accessible for people.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions