New to Telerik UI for WPFStart a free 30-day trial

Implements a markup extension that returns a localization string.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class LocalizableResourceExtension : MarkupExtension

Inheritance: objectLocalizableResourceExtension

Constructors

C#
public LocalizableResourceExtension()

Properties

Gets or sets the localization key.

C#
public object Key { get; set; }

KeyBinding

Binding

Gets or sets a Binding object used to fetch the localization key. If the Key property is set, the KeyBinding setting is ignored.

C#
public Binding KeyBinding { get; set; }

Methods

Returns an object that is provided as the value of the target property for the markup extension.

C#
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters:serviceProviderIServiceProvider

A service provider helper that can provide services for the markup extension.

Returns:

object

The value to set on the property where the extension is applied..