Static class to dependency injection

后端 未结 2 923
盖世英雄少女心
盖世英雄少女心 2021-01-05 15:02

The application I\'m trying to get to work uses MVVM. The biggest part of this post is an explanation of what I tried and what I got working. The question is near the bo

2条回答
  •  无人及你
    2021-01-05 15:37

    Have a look at this article on localization in WPF applications:

    http://www.codeproject.com/Articles/299436/WPF-Localization-for-Dummies

    Your localization can be handled via resource assemblies for each language you need to support and the correct one will be used at run-time based on the current culture - or a fallback culture. Your view models can reference the resources and shouldn't care about the specific locale.

提交回复
热议问题