This topic has not yet been rated - Rate this topic

MarkupExtension.ProvideValue Method

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

Namespace:  System.Windows.Markup
Assembly:  System.Windows (in System.Windows.dll)
public abstract Object ProvideValue(
	IServiceProvider serviceProvider
)

Parameters

serviceProvider
Type: System.IServiceProvider
A service provider helper that can provide services for the markup extension.

Return Value

Type: System.Object
The object value to set on the property where the extension is applied.

Implements

IMarkupExtension<T>.ProvideValue(IServiceProvider)

For most scenarios, custom markup extensions should implement the IMarkupExtension<T> interface and the ProvideValue method.

Silverlight

Supported in: 5

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ