Table of Contents

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:

propertyname: propertyname used as key for fetching the corresponding ressource setting (Ex. "DateEnded") EntityName: Name of the EntityName in which the property Resides. (Ex. "Case")

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.