MarkupExtension.ProvideValue Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
Public MustOverride Function ProvideValue ( _
serviceProvider As IServiceProvider _
) As Object
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
Remarks
For most scenarios, custom markup extensions should implement the IMarkupExtension<T> interface and the ProvideValue method.
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also