Table of Contents

Class VectorIcon

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

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

pathData string
brush Brush

Fields

BackgroundProperty

Identifies the Background dependency property.

public static readonly DependencyProperty BackgroundProperty

Field Value

DependencyProperty

DataProperty

Identifies the Data dependency property.

public static readonly DependencyProperty DataProperty

Field Value

DependencyProperty

StretchProperty

Identifies the Stretch dependency property.

public static readonly DependencyProperty StretchProperty

Field Value

DependencyProperty

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

Geometry

Stretch

Determines how the icon scales inside the available bounds.

public Stretch Stretch { get; set; }

Property Value

Stretch

Methods

InitializeChildren()

Called once to create the inner visual.

protected override UIElement InitializeChildren()

Returns

UIElement

OnBackgroundChanged(DependencyPropertyChangedEventArgs)

protected void OnBackgroundChanged(DependencyPropertyChangedEventArgs args)

Parameters

args DependencyPropertyChangedEventArgs

OnForegroundChanged(DependencyPropertyChangedEventArgs)

protected override void OnForegroundChanged(DependencyPropertyChangedEventArgs args)

Parameters

args DependencyPropertyChangedEventArgs