Skip to main content

SvgIcon Members

Allows you to display SVG images in your applications.

Constructors

Name Description
SvgIcon() Initializes a new instance of the SvgIcon class.
SvgIcon(SvgImage, Size) Initializes a new instance of the SvgIcon class.

Fields

Name Description
AutoSizeProperty static Identifies the SvgIcon.AutoSize dependency property.
HorizontalContentAlignmentProperty static Identifies the SvgIcon.HorizontalContentAlignment dependency property.
IconStretchProperty static Identifies the SvgIcon.IconStretch dependency property.
PaletteProperty static
SourceProperty static Identifies the SvgIcon.Source dependency property.
UseSvgPaletteProperty static
VerticalContentAlignmentProperty static Identifies the SvgIcon.VerticalContentAlignment dependency property.

Properties

Name Description
AutoSize Gets or sets whether the size of the source SVG image is automatically adjusted to the container dimensions. This is a dependency property.
HorizontalContentAlignment Gets or sets the horizontal alignment of the icon. This is a dependency property.
IconStretch Gets or sets a value that specifies how the image is resized to fill its allocated space. This is a dependency property.
IsLoadedEx
IsLoading Gets whether the SVG image is currently loading.
Palette
Source Gets or sets the uniform resource identifier of the SVG image. This is a dependency property.
UriSource This member supports the internal infrastructure and is not intended to be used directly from your code.
UseSvgPalette
VerticalContentAlignment Gets or sets the vertical alignment of the icon. This is a dependency property.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name
ImageFailed
ImageLoaded
See Also