MarkupExtension.ProvideValue Method

Definition

Overloads

ProvideValue()

When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.

ProvideValue(IXamlServiceProvider)

Retrieves an object that is the value of the target service provider.

ProvideValue()

When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.

protected:
 virtual Platform::Object ^ ProvideValue() = ProvideValue;
/// [Windows.Foundation.Metadata.Overload("ProvideValue")]
IInspectable ProvideValue();
[Windows.Foundation.Metadata.Overload("ProvideValue")]
protected virtual object ProvideValue();
function provideValue()
Protected Overridable Function ProvideValue () As Object

Returns

Object

Platform::Object

IInspectable

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

Attributes

Applies to

ProvideValue(IXamlServiceProvider)

Retrieves an object that is the value of the target service provider.

protected:
 virtual Platform::Object ^ ProvideValue(IXamlServiceProvider ^ serviceProvider) = ProvideValue;
/// [Windows.Foundation.Metadata.Overload("ProvideValueWithIXamlServiceProvider")]
IInspectable ProvideValue(IXamlServiceProvider const& serviceProvider);
[Windows.Foundation.Metadata.Overload("ProvideValueWithIXamlServiceProvider")]
protected virtual object ProvideValue(IXamlServiceProvider serviceProvider);
function provideValue(serviceProvider)
Protected Overridable Function ProvideValue (serviceProvider As IXamlServiceProvider) As Object

Parameters

serviceProvider
IXamlServiceProvider

The target service provider.

Returns

Object

Platform::Object

IInspectable

An object that is the value of the target service provider.

Attributes

Applies to