Class ControlColorAndStyle
Defines color and style settings for dark and light theme.
public class ControlColorAndStyle
- Inheritance
-
ControlColorAndStyle
Properties
- Dark
Gets color and style settings for the dark theme.
- Light
Gets color and style settings for the light theme.
Methods
- Clone()
Clones this object.
- DarkOrLight(bool)
Gets Dark if
isDarkistrueand dark theme settings were defined; Light otherwise.
- DisabledBorderAsHovered()
Sets border in the disabled state equal to border in the hovered state.
- NormalBorderAsHovered()
Sets border in the normal state equal to border in the hovered state.
- SetAsPushButton()
Sets background paint actions to draw push button background. DrawDefaultBackground(PaintEventArgs, DrawDefaultBackgroundFlags) uses this information when it paints background of the control.
- SetBorderColor(Color?)
Sets border color to all initialized borders.
- SetBorderFromBorder(VisualControlState, VisualControlState)
Sets border in the
stateToChangestate to be equal to the border in theassignFromStatestate.
- SetBorderWidth(Thickness)
Sets border width to all initialized borders.
- SetCornerRadius(float?, bool)
Sets the corner radius for all initialized borders of the control.