Silverligth MVVM : How to do Localization in the correct way ?

Jul 26, 2010 at 9:00 AM

Hello Nik,

I also asked this question on stackoverflow, but I also wanted to ask for your opinion about this.

Question in short:
Do you define the translation + localization in the viewmodel, or xaml?

Best regards,
Stef

 

 

 

 

 

Jul 26, 2010 at 3:35 PM

I would do localization in xaml... I don't think I want to write a ton of code in my view model for this.

Essentially my object containing string or other localized values would be instantiated in resources, and I'd set up bindings against that - all declaratively.