Table of Contents

Class SvgView

Namespace
PluginUI
Assembly
PluginUI.dll

Displays an SVG image (fit, rotation, opacity). Native SVG needs Windows 10 1703 or later.

public class SvgView : Control
Inheritance
SvgView
Inherited Members

Constructors

SvgView()

Creates an empty SVG view.

public SvgView()

SvgView(SvgImage)

Creates a view showing svg.

public SvgView(SvgImage svg)

Parameters

svg SvgImage

Properties

DefaultSize

Natural size used when no explicit size is given.

protected override Size DefaultSize { get; }

Property Value

Size

Fit

Fitting mode.

public ImageFit Fit { get; set; }

Property Value

ImageFit

Rotation

Rotation in degrees (clockwise) around the center.

public float Rotation { get; set; }

Property Value

float

Svg

SVG document.

public SvgImage? Svg { get; set; }

Property Value

SvgImage

Methods

RenderVector(DrawingContext, Rect, VectorStyle)

Vector rendering of the widget area.

protected override void RenderVector(DrawingContext dc, Rect widget, VectorStyle style)

Parameters

dc DrawingContext
widget Rect
style VectorStyle