Vixen
02b45cc4
csharp
public sealed class ColorStrip

A strip that a drag moves along: the hue band, or the alpha band.

No guide page documents this yet — the page shows what the code says about itself.

Fields and properties (5)

  • protected override string TagName

    The element name this type answers to when a caller does not choose one.

  • protected override bool AcceptsFocus

    Whether the focus can rest on this kind of control at all.

  • public ColorChannel Channel

    Which one it is.

  • public ColorPicker? Owner

    The picker it belongs to.

  • public float Fraction

    Where the marker is, from zero at the left to one at the right.

Events (1)

  • public Action<ColorStrip, float>? Moved

    Raised 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
  • ColorSwatchVixen.Ui.Controls.Advanced
  • GradientBarVixen.Ui.Controls.Advanced