Class VectorIcon
Displays vector path data as an IconElement.
public class VectorIcon : IconElement, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
- Inheritance
-
VectorIcon
- Implements
- Inherited Members
Constructors
VectorIcon()
public VectorIcon()
VectorIcon(string, Brush?)
public VectorIcon(string pathData, Brush? brush = null)
Parameters
Fields
BackgroundProperty
Identifies the Background dependency property.
public static readonly DependencyProperty BackgroundProperty
Field Value
DataProperty
Identifies the Data dependency property.
public static readonly DependencyProperty DataProperty
Field Value
StretchProperty
Identifies the Stretch dependency property.
public static readonly DependencyProperty StretchProperty
Field Value
Properties
Background
Gets or sets a brush that describes the background of a control.
[Bindable(true)]
public Brush Background { get; set; }
Property Value
- Brush
The brush that is used to fill the background of the control. The default is Transparent.
Data
The vector path geometry being rendered.
[TypeConverter(typeof(GeometryConverter))]
public Geometry Data { get; set; }
Property Value
Stretch
Determines how the icon scales inside the available bounds.
public Stretch Stretch { get; set; }
Property Value
Methods
InitializeChildren()
Called once to create the inner visual.
protected override UIElement InitializeChildren()
Returns
OnBackgroundChanged(DependencyPropertyChangedEventArgs)
protected void OnBackgroundChanged(DependencyPropertyChangedEventArgs args)
Parameters
OnForegroundChanged(DependencyPropertyChangedEventArgs)
protected override void OnForegroundChanged(DependencyPropertyChangedEventArgs args)