LoadAsync(String, Uri?, Nullable, CancellationToken) Method

Definition

Assembly Svg.Controls.Skia.Avalonia.dll

t Loads svg source from file or resource asynchronously.

public static Task<SvgSource> LoadAsync(string path, Uri? baseUri = null, SvgParameters? parameters = default(SvgParameters? ), CancellationToken cancellationToken = default(CancellationToken))

Parameters

path
String

The path to file or resource.

baseUri
Uri?

The base uri.

parameters
Nullable<SvgParameters>

The svg parameters.

cancellationToken
CancellationToken

A cancellation token.

Returns

Task<SvgSource>
The svg source.