Method SetButtonImage
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
buttonButtonThe button to set the image for.
svgSvgImageThe SVG image to use.
sizeintThe size of the image.
disabledboolWhether 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
buttonImageButtonThe button to set the image for.
svgSvgImageThe SVG image to use.
sizeintThe size of the image.