Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Store Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems.

Go Back   Vista Forums > Vista technology newsgroups > Avalon

Keyboard hotkey in a localized application

Reply
 
Thread Tools Display Modes
Old 12-17-2007   #1 (permalink)
bottaxxgp
Guest
 
Posts: n/a

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
  Reply With Quote

Old 01-16-2008   #2 (permalink)
tbrummel
Guest
 
Posts: n/a

RE: Keyboard hotkey in a localized application

Did you get this figured out? I was hoping someone would reply as I'll be
localizing our app soon and this worries me...

"bottaxxgp" wrote:
Quote:

>
> 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
  Reply With Quote
 
Reply

Thread Tools
Display Modes









Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48