public sealed class RangeSliderTwo values, and the span between them.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
⚠ The thumbs may meet but never cross. Dragging the low thumb past the high one stops it rather than swapping them, because swapping means the thumb under the cursor is suddenly a different thumb — and the drag that was raising the ceiling starts lowering the floor without the user having done anything.
Fields and properties (5)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
public float Lowpublic float Highpublic static readonly UiPropertyKey LowPropertyIdentity for Low.
public static readonly UiPropertyKey HighPropertyIdentity for High.
Events (1)
public Action<RangeSlider, float, float>? SpanChangedRaised when either end moves.
Methods (5)
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.
protected override void OnBoundsChanged()Called when the bounds move, so a subclass can bring its value back inside them.
public void ClearLow()Unsets Low, so it takes its default or its ancestor's value again.
public void ClearHigh()Unsets High, so it takes its default or its ancestor's value again.
Used by (4)
- ShellHelloUi
- ControlVisualTestsVixen.Ui.Controls.Tests
- RangeInteractionTestsVixen.Ui.Controls.Tests
- SurfaceTestsVixen.Ui.Controls.Tests