[]
        
(Showing Draft Content)

C1.WPF.Localization.C1LocalizeExtension.ProvideValue

ProvideValue Method

ProvideValue(IServiceProvider)

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

Declaration
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
Type Name Description
IServiceProvider serviceProvider

The IProvideValueTarget provided from the MarkupExtension

Returns
Type Description
object

The founded item from the .resx directory or default value if not founded.

Overrides
Exceptions
Type Condition
InvalidOperationException

thrown if serviceProvider is not type of IProvideValueTarget