Table of Contents

Method ReloadFromSvg

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ReloadFromSvg(TKey, bool)

Reloads an image from an SVG source and updates it with the specified size and color.

public virtual void ReloadFromSvg(TKey imageKey, bool isSmallImage)

Parameters

imageKey TKey

The key identifying the SVG image to reload.

isSmallImage bool

A value indicating whether the image should be reloaded as a small image. If true, the image is resized to a smaller dimension; otherwise, it is resized to a larger dimension.

Remarks

This method retrieves the SVG image associated with the specified imageKey, applies the corresponding color, and resizes it based on the isSmallImage parameter. The updated image is then set in the appropriate storage.