WebImageViewer background colour

I am using a WebImageViewer as a button as I’d like to set an SVG image to it, which I have done using the SVGData property.
However, I have made the svg viewport smaller than the WebImageViewer (to create some padding around the svg) . I would like to set a background colour to the entire WebImageViewer. How can I do this?

You can use this code to set the WebImageViewer’s background color to red. I tested it in the Opening event.

me.Style.BackgroundColor = Color.RGB( 255, 0, 0 )
2 Likes