HypernovaDesktop Components · docs
Binarymission
WPF › Skinning › BinarySkinProblem

BinarySkinProblem

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Skinning

Two colours of a skin that are too alike: text that would be hard to read, or a change of state a user could not see.

public sealed class BinarySkinProblem

Members at a glance

BackgroundGets the colour it is drawn on, or that it replaces.
ContrastGets the contrast the two colours have.
DescriptionGets the problem in words, naming both colours, where they are seen and the two ratios.
ForegroundGets the colour drawn on top.
RequiredContrastGets the contrast they need.
ToStringThe description.
StateChangeRatioThe contrast a command's pointer and pressed colours must have with the colour they replace, for the change to be seen.

Properties

Background

public BinarySkinColor Background

Gets the colour it is drawn on, or that it replaces.

Value. The role.

Contrast

public double Contrast

Gets the contrast the two colours have.

Value. The ratio, from 1 to 21.

Description

public string Description

Gets the problem in words, naming both colours, where they are seen and the two ratios.

Value. The description.

Foreground

public BinarySkinColor Foreground

Gets the colour drawn on top.

Value. The role.

RequiredContrast

public double RequiredContrast

Gets the contrast they need.

Value. The ratio.

Methods

ToString

public override string ToString()

The description.

Returns. Description.

Fields

StateChangeRatio

public const double StateChangeRatio

The contrast a command's pointer and pressed colours must have with the colour they replace, for the change to be seen.