Opacity is a property of a control that I can see recurring quite often. Right now there isn't really any way of making an entire control transparent. You'd have to multiply all the colours with the alpha and somehow not accidentally override that even if you're a few levels down in the control hierarchy.
My suggestion is to add an Opacity property to controls in a similar vain to the Frame. That is, a control can set its own immediate opacity (default = 1), which will then be multiplied by the parent opacity for the final calculated value.
While renderers will still have to keep this value in mind manually, it will at least make sure entire subtrees of controls are made transparent correctly.
Opacity is a property of a control that I can see recurring quite often. Right now there isn't really any way of making an entire control transparent. You'd have to multiply all the colours with the alpha and somehow not accidentally override that even if you're a few levels down in the control hierarchy.
My suggestion is to add an
Opacityproperty to controls in a similar vain to theFrame. That is, a control can set its own immediate opacity (default = 1), which will then be multiplied by the parent opacity for the final calculated value.While renderers will still have to keep this value in mind manually, it will at least make sure entire subtrees of controls are made transparent correctly.