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
button
ButtonThe button to set the image for.
svg
SvgImageThe SVG image to use.
size
intThe size of the image.
disabled
boolWhether 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
ImageButtonThe button to set the image for.
svg
SvgImageThe SVG image to use.
size
intThe size of the image.