Method GetIconImageSourceAsync Last update: 19.06.2026 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. public static Task<ImageSource> GetIconImageSourceAsync(this IPacz paczSource) 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.