Skip to main content
Namespace: Phoenix.ComponentBuilderAPI.Extensions
Assembly: Phoenix.ComponentBuilderAPI.dll

GetIconImageSourceAsync(IPacz)

Given an Phoenix.PaczAPI.IPacz, retrieve the icon as an System.Windows.Media.ImageSource. This returns the icon scaled to 16 x 16.

Parameters

paczSource IPacz The PACZ from which to extract an icon.

Returns

Task<ImageSource> The icon as a System.Windows.Media.ImageSource if it could successfully be loaded or null if the PACZ does not have an icon.

Remarks

This function will throw an exception if it encounters an error when loading the icon.