通用Windows应用程序-辅助功能不适用于Canvas

时间:2019-02-07 17:14:01

标签: canvas uwp accessibility windows-10-universal narrator

<Grid Name="Simple Grid" >
    <Button AutomationProperties.Name="Simple Button" Name="Button" AutomationProperties.AccessibilityView="Control" AutomationProperties.HelpText="Help text for the button is set from XAML" Content="Button" HorizontalAlignment="Left" Margin="285,228,0,0" VerticalAlignment="Top"/>
    <Canvas AutomationProperties.Name="Simple Border" IsTapEnabled="True" Background="Black" Height="300" IsAccessKeyScope="True" Width="200" AutomationProperties.AccessibilityView="Control" AutomationProperties.HelpText="Help text for the border is set from XAML" HorizontalAlignment="Right"/>
</Grid>

在通用Windows应用程序中的上述代码中,使用“ Narrator”的可访问性测试适用于Button,而不适用于Canvas。同样,它不适用于Windows.UI.Xaml.Controls(如Border,Image)。

如何实现这些控件的可访问性?

0 个答案:

没有答案