Table of Contents

Property StreamSource

Namespace
SharpVectors.Converters
Assembly
SharpVectors.Converters.Wpf.dll

StreamSource

Gets or sets the Stream to the SVG source to load into this Viewbox.

public Stream StreamSource { get; set; }

Property Value

Stream

A Stream specifying the stream to the SVG source. Settings this to null will close any opened diagram.

Remarks

The stream source has precedence over the Uri Source property. If set (not null), the stream source will be rendered instead of the Uri source.

WPF controls do not implement the IDisposable interface and cannot properly dispose any stream set to it. To avoid this issue and also any problem of the user accidentally closing the stream, this control makes a copy of the stream to memory stream.

See Also