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
svgSvgImage
Properties
DefaultSize
Natural size used when no explicit size is given.
protected override Size DefaultSize { get; }
Property Value
Fit
Fitting mode.
public ImageFit Fit { get; set; }
Property Value
Rotation
Rotation in degrees (clockwise) around the center.
public float Rotation { get; set; }
Property Value
Svg
SVG document.
public SvgImage? Svg { get; set; }
Property Value
Methods
RenderVector(DrawingContext, Rect, VectorStyle)
Vector rendering of the widget area.
protected override void RenderVector(DrawingContext dc, Rect widget, VectorStyle style)
Parameters
dcDrawingContextwidgetRectstyleVectorStyle