Table of Contents

Class ControlColorAndStyle

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 isDark is true and 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 stateToChange state to be equal to the border in the assignFromState state.

SetBorderWidth(Thickness)

Sets border width to all initialized borders.

SetCornerRadius(float?, bool)

Sets the corner radius for all initialized borders of the control.