LanguageBinding

Name Value
Assembly Catel.MVVM
Namespace Catel.Windows.Markup
Available on .NET Framework 4.5, .NET Framework 4.6
public class LanguageBinding : UpdatableMarkupExtension

Base types UpdatableMarkupExtension

Binding that uses the ILanguageService to retrieve the binding values.

Fields

Constructors

LanguageBinding()

Initializes a new instance of the LanguageBinding class.

LanguageBinding(string resourceName)

Initializes a new instance of the LanguageBinding class.

Parameters

Name Description
resourceName Name of the resource.

Properties

Culture

Gets or sets the culture. If set tonull, it will be determined automatically.

HideDesignTimeMessages

Gets or sets a value indicating whether to hide design time messages or not.

ResourceName

Gets or sets the resource name.

Methods

OnLanguageUpdated(object sender, EventArgs e)

The language updated event.

Parameters

Name Description
sender The sender.
e The instance containing the event data.

Remarks

Must be public because this uses weak events.


Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion