Custom Control's Background Not Transparent

I was wondering if anyone has encounter this yet, or if I’m perhaps doing something wrong?

I’ve created a new custom button control which inherits from Canvas. The background of this custom control button is not however transparent, even when I toggle the background to be transparent in the Behavior section of the control. This is on Windows.

Any idea of something else I could try to ensure the corners shown in the image is transparent?


On Windows, “Transparent” is calculated and requires the parent object be correct for it to work. The parent of your custom canvas will need to be whatever is drawing that blue for the canvas to calculate the “transparency” correctly.

In the IDE, drag the CustomControl inside of the BlueControl and be sure the BlueControl gets a red highlight around it. When you see the red highlight you may release the mouse (drop the control). The parenting should now be correct.

If you would like to move the CustomControl outside of the BlueControl after the parenting for organizational purposes, do so with the Inspector position properties. Editing these will not change the parent, but can allow you to move the CustomControl back outside of the BlueControl during design time.

2 Likes

Thank you so much @Tim_Parnell… that did the trick :smiley: