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)
Parameters
- serviceProvider
- Type: System.IServiceProvider
A service provider helper that can provide services for the markup extension.
Return Value
Type: System.ObjectThe 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.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.