ControlBackground QML Type
A state-aware background for controls. More...
| Import Statement: | import FluentUI.Controls 1.0 |
Properties
- accentColor : var
- defaultColor : color
- highlighted : bool
- radius : int
- target : Item
Detailed Description
ControlBackground renders a rounded rectangle background that adapts to the visual state of its target control. It supports highlight, accent color, and default color variants, providing consistent background visuals across different control states.
Property Documentation
accentColor : var
The accent color used when the target is in an accented state.
defaultColor : color
The default background color used when not highlighted.
highlighted : bool
Whether the background should render in a highlighted state.
radius : int
The corner radius of the background rectangle.
target : Item
The control item whose visual state drives the background appearance.