Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Keyboard hotkey in a localized application

 
 
Old 12-17-2007   #1 (permalink)
bottaxxgp


 
 

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

My System SpecsSystem Spec
Old 01-16-2008   #2 (permalink)
tbrummel


 
 

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
My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
How do you change a keyboard hotkey Vista General
MS Natural Keyboard 4000/Vista: Hotkey to open/close optical drive Vista hardware & devices
MS Natural Keyboard 4000/Vista: Hotkey to open/close optical drive Vista hardware & devices
DOS application not using local keyboard. Vista General
Keyboard setup for DOS application under Vista Vista installation & setup


Vista Forums 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 Ltd

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