In my WPF 4.0 desktop-based application in order to localize my application (e.g. English & French localizations) I'm using Resources.resx file, where I type dialog name (ID) and its value for English and French localization. Everything works great, except one thing — IntelliSense of Visual Studio 2010.
Let's say, I have a button:
<Button x:Name="Toolbar_Search_Button"
Content="{x:Static res:Resources.Toolbar_Search_Button}" />
Where I want to put its content (label on the button) in English and in French as well, in order to do this I added to Resources.resx and Resources.fr.resx string with ID «Toolbar_Search_Button» and gave a value for each of them (Search/Recherche) and now I have to assign the string ID to button's content property. In my case I have to write all this long string: «x:Static res:Resources.Toolbar_Search_Button» and IntelliSense doesn't help me at all. The only thing that it suggests me is «Member=», but I want that when I type «res:Resources.» it gives me all existed strings ID, as we can usually see when IntelliSense is enabled.
I checked VS2010 preferences, IntelliSense is enabled for all kinds of projects/languages and it works when I write other XAML/C# code, like when I type «Wi» it suggests me «Width» etc.
My question is: How to enabled IntelliSense for localization/Resources? That I could type «res:Resources.» and see all localization resources strings that I have.
Thanks a lot.