See Also: IMarkupExtension Members
Types implementing this interface can be used as custom XAML markup extension.
The following example shows declaration of a custom markup extension.C# Example
public class ColorMarkup : IMarkupExtension
{
public int R { get; set; }
public int G { get; set; }
public int B { get; set; }
public object ProvideValue (IServiceProvider serviceProvider)
{
return Color.FromRgb (R, G, B);
}
}
XAML Example
<Label TextColor="{localns:ColorMarkup R=100, G=80, B=60}"/>