Referencing resources.resw in AppBar-Button

I need to reference a text from the resources.resw-file in a AppBar-Button, but as it is set as AutomationProperties.Name="". I can not just add it in the resources.resw as AppBarSearch.AutomationProperties.Name, so how can I reference it?

Answers


AutomationProperties.Name is an attached property and you need to handle it differently, i.e. you need to include its namespace in the resource key:

AppBarSearch.[using:Windows.UI.Xaml.Automation]AutomationProperties.Name

Need Your Help

Edit XML node in c#

c# xml xpath

I'm trying to edit a node in .xml file but i can't get it working.