Enum DecorationLayer
Whether a Decoration is painted under the control tree or over it.
public enum DecorationLayer
Fields
Background = 0Under every control. The default, because that is what a decoration almost always is - an atmospheric wash, a framing rule, a corner flourish - and a mark drawn over the tree sits over whatever happens to be under it, including text and inputs.
Foreground = 1Over every control, drawn in the same pass as an open dropdown or a tooltip. For a mark that is genuinely meant to overlay the UI - a watermark, a build stamp.