Windows phone应用程序,如何使用叙述者自动读取页面标题?
我正在手机上开发windows通用应用程序(XAML,C#),并为“讲述人”启用可访问性。有人知道如何让叙述者在页面打开时自动阅读页面标题吗 我尝试在页面中设置automationproperties.name,但没有成功:Windows phone应用程序,如何使用叙述者自动读取页面标题?,windows,accessibility,uwp,narrator,Windows,Accessibility,Uwp,Narrator,我正在手机上开发windows通用应用程序(XAML,C#),并为“讲述人”启用可访问性。有人知道如何让叙述者在页面打开时自动阅读页面标题吗 我尝试在页面中设置automationproperties.name,但没有成功: <Page x:Class="xxxxxx" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2
<Page
x:Class="xxxxxx"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
AutomationProperties.Name="Page title to be read"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
在列表中选择控件或编辑文本框时,将应用UWP的“讲述人”功能。如果你想在应用程序打开时阅读内容,你应该使用SpeechSynthesizer API,这非常容易实现: 1.-在XAML中添加媒体元素
<MediaElement x:Name="MediaElement"/>
通过将字符串传递给读卡器,您可以阅读任何需要的内容。您需要使“讲述人”能够查看。我认为您不能在Page类中声明Name属性。在页面内容中尝试以下操作:
<HyperlinkButton
NavigateUri="www.bing.com"
AutomationProperties.AutomationID="bing url" //Not Required to work
AutomationProperties.Name="Go to the Bing Homepage"//Narrator will read this
<StackPanel>
<TextBlock Text="Bing Dot Com" />
<TextBlock Text="www.bing.com" />
<StackPanel>
</HyperlinkButton>
<HyperlinkButton
NavigateUri="www.bing.com"
AutomationProperties.AutomationID="bing url" //Not Required to work
AutomationProperties.Name="Go to the Bing Homepage"//Narrator will read this
<StackPanel>
<TextBlock Text="Bing Dot Com" />
<TextBlock Text="www.bing.com" />
<StackPanel>
</HyperlinkButton>