csharp
public sealed class ColorFieldThe two-dimensional field: saturation against value, or chroma against lightness.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (5)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
protected override bool AcceptsFocusWhether the focus can rest on this kind of control at all.
public ColorPicker? OwnerThe picker it belongs to.
public Vector2 MarkerWhere the marker is, from (0,0) at the top left to (1,1) at the bottom right.
public const int SamplesHow many columns the perceptual field is sampled into.
Events (1)
public Action<ColorField, Vector2>? MovedRaised while it is being dragged.
Methods (2)
protected override void OnCreated()Builds whatever this element is made of, once, as it joins a document.
protected override void OnDraw(DrawContext context)Draws whatever this element is, beyond what a stylesheet can describe.
Used by (2)
- ColorPickerVixen.Ui.Controls.Advanced
- ColorPickerTestsVixen.Ui.Controls.Advanced.Tests