Interface IMarkupExtension<T>
Provides an interface basis for XAML markup extension implementations that can be supported by Silverlight XAML processors.
Namespace: System.Xaml
Assembly: OpenSilver.Xaml.dll
Syntax
public interface IMarkupExtension<out T>
where T : class
Type Parameters
Name | Description |
---|---|
T | The type of the object that is returned by the ProvideValue(IServiceProvider) implementation. This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. |
Methods
| Improve this Doc View SourceProvideValue(IServiceProvider)
Returns an object that is provided as the value of the target property for the markup extension.
Declaration
T ProvideValue(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | serviceProvider | A service provider helper that can provide services for the markup extension. |
Returns
Type | Description |
---|---|
T | The value to set on the property where the extension is applied. |