Class TranslateExtension
- Namespace
- Innova.Prism.Library.Extensions
- Assembly
- Innova.Prism.Library.dll
This markupextension is used for implementing localization in xaml files. It is used as shown in the following:
NOTE! In order to work you must assign the delegate ("Translator.Instance"), when starting up your solution, which is actually executing the translation. This delegate must return the string to be used, and accept 2 parameters: typename and propertyname.
public class TranslateExtension : MarkupExtension
- Inheritance
-
TranslateExtension
Constructors
- TranslateExtension(string)
Initializes a new instance of the TranslateExtension class.
- TranslateExtension(string, string)
Initializes a new instance of the TranslateExtension class.
Methods
- ProvideValue(IServiceProvider)
Provides the translated value for the specified property name.