|
Keyboard hotkey in a localized application
I have an application with a menu
This is the menu.
<MenuItem Header="_New">
<MenuItem Header="_One" />
<MenuItem Header="_Two" />
</MenuItem>
and i see an underscore under the letter near the underscore in execution.
If i apply the localization rescuing the value from an XML file UTf-16 coded
i see the text "_One" and not the hotkey.
This is the call of the text for a generic menuItem
<MenuItem Header="{Binding Source={StaticResource LanguagesList},
XPath=String[@id\=\'2\']}" />
Part of XML
<?xml version="1.0" encoding="utf-16" ?>
<Languages>
<Language lang="Italiano" Culture="it-IT" FlowDirection="LeftToRight">
<String id="2">_Nuovo</String>
</Language>
<Language lang="English" Culture="en-UK" FlowDirection="LeftToRight">
<String id="2">_Nuovo</String>
</Language>
<Languages>
someone can give me a suggestion?
--
WPF Beginner |