csharp
public sealed class SliderA value chosen by dragging a thumb along a track.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (3)
protected override string TagNameThe element name this type answers to when a caller does not choose one.
public float Valuepublic static readonly UiPropertyKey ValuePropertyIdentity for Value.
Events (1)
public Action<Slider, float>? ValueChangedRaised when the value changes, however it changed.
Methods (4)
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 ClearValue()Unsets Value, so it takes its default or its ancestor's value again.
Used by (17)
- ShellHelloUi
- ColorPickerVixen.Ui.Controls.Advanced
- ControlVisualTestsVixen.Ui.Controls.Tests
- GradientEditorVixen.Ui.Controls.Advanced
- GradientEditorTestsVixen.Ui.Controls.Advanced.Tests
- PropertyGridVixen.Ui.Controls.Advanced
- PropertyGridTestsVixen.Ui.Controls.Advanced.Tests
- RangeInteractionTestsVixen.Ui.Controls.Tests
- SurfaceTestsVixen.Ui.Controls.Tests
- AudioMixerViewVixen.Editor.AssetEditors
- AudioMixerViewTestsVixen.Editor.AssetEditors.Tests
- BrushInspectorMarkupTestsVixen.Editor.Terrain.Tests
- CompositeTestsVixen.Editor.Inspector.Tests
- DrawerTestsVixen.Editor.Inspector.Tests
- MarkupBindingVixen.Editor.Inspector
- MarkupBindingTestsVixen.Editor.Inspector.Tests
- NumberDrawerVixen.Editor.Inspector