Table of Contents

Method SetButtonImage

Namespace
Alternet.UI
Assembly
Alternet.UI.Maui.dll

SetButtonImage(Button, SvgImage?, int, bool)

Sets the image for a Button using the specified SVG image and size.

public static void SetButtonImage(Button button, SvgImage? svg, int size, bool disabled = false)

Parameters

button Button

The button to set the image for.

svg SvgImage

The SVG image to use.

size int

The size of the image.

disabled bool

Whether to use the disabled image.

SetButtonImage(ImageButton, SvgImage?, int)

Sets the image for a ImageButton using the specified SVG image and size.

public static void SetButtonImage(ImageButton button, SvgImage? svg, int size)

Parameters

button ImageButton

The button to set the image for.

svg SvgImage

The SVG image to use.

size int

The size of the image.