Add hint about MathRichEditBox's context menu for narrator (#2147)

* Add hint about MathRichEditBox's context menu for narrator

* Update resource string

* Update resource string
This commit is contained in:
hanzhang54 2024-03-26 14:20:51 +08:00 committed by GitHub
commit 05ee7a012c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -4750,4 +4750,8 @@
<value>Settings page</value>
<comment>Announcement used when Settings page is opened</comment>
</data>
<data name="MathRichEditBox.[using:Windows.UI.Xaml.Automation]AutomationProperties.Name" xml:space="preserve">
<value>Open the context menu for available actions</value>
<comment>Screen reader prompt for the context menu of the expression box</comment>
</data>
</root>

View file

@ -661,6 +661,7 @@
FontSize="{TemplateBinding FontSize}"
FontWeight="{TemplateBinding FontWeight}"
AcceptsReturn="false"
AutomationProperties.Name="{utils:ResourceString Name=MathRichEditBox/[using:Windows.UI.Xaml.Automation]AutomationProperties/Name}"
InputScope="Text"
MathText="{Binding MathEquation, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}"
MaxLength="2048"