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

Styling select not displaying the same on Chrome or Firefox

html css css3

I'm having a problem styling a select box with Chrome and Safari, on Firefox works fine.

java optimization nitpick: is it faster to cast something and let it throw exception than calling instanceof to check before cast?

java optimization casting instanceof

Before anyone says anything I'm asking this out of curiosity only; I'm not planning to do any premature optimization based off of this answer.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.