I'm using WPF 3.5.
I'm binding a button's Content property to an XPath query, and all is well until I try to make use of the Accelerator feature.
When I hardcode the text, and place an _ (underscore) in the content, it renders as an accelerator key when the Alt key is pressed. However, when the content is a binding expression that uses an XPath query, the underscore does not render as an accelerator
key. It simply appears as part of the content.
Here is some simplified XAML code to illustrate:
<XmlDataProvider x:Key="languageResources" d:IsDataSource="True" Source="Resources\Language\English.xml" />
<Button x:Name="ExitButtonWithHardCodedText" Grid.Row=&quo
View Complete Post