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 (8)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
protected override bool AcceptsFocusprotected override AccessibleRole NativeRoleprotected override string? NativeAccessibleNameWhat this kind of element calls itself, from what it already holds.
protected override string? NativeAccessibleValuepublic 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 (3)
- ColorPickerVixen.Ui.Controls.Advanced
- ColorPickerKeyboardTestsVixen.Ui.Controls.Advanced.Tests
- ColorPickerTestsVixen.Ui.Controls.Advanced.Tests