[]
        
(Showing Draft Content)

C1.Blazor.Input.SliderBase

SliderBase Class

Base class for sliders.

Namespace: C1.Blazor.Input
Assembly: C1.Blazor.Input.dll
Syntax
public abstract class SliderBase : C1View, IComponent, IHandleAfterRender, IDependencyObject, IHandleEvent, IDisposable

Constructors

Name Description
SliderBase()

Ctor.

Fields

Name Description
_containerElem

Container element reference.

_containerHeight

Container height.

_containerWidth

Container width.

_innerStyle

Inner container style.

_lowerRepeatElem

Lower hit button is used for decreasing thumb's value by ValueChange.

_positionStrategy

Specified calculation of the thumb position.

_selectedThumbNode

Selected thumb node.

_thumbOverlayElem

Thumb overlay element reference.

_thumbSize

Thumb size.

_thumbVisualSize

Thumb regular visual size (without considering over state size).

_thumbs

List of thumbs.

_trackElem

Track element reference.

_trackSize

Track size.

_upperRepeatElem

Upper hit button is used for increasing thumb's value by ValueChange.

Properties

Name Description
Delay

Gets or sets the time, in milliseconds, buttons (at the left of the thumb and at the right of the thumb) wait when they are pressed before they start repeating the click action.

FetchElementsSizeFromStyleRequested

Set to true to fetch elements size from the styles (container's width, height, thumb's size ) after it's implementation after the render.

Interval

Gets or sets the time, in milliseconds, between repetitions of the click action, as soon as repeating starts (for buttons at the left of the thumb and at the right of the thumb).

IsRenderEnabled

Set false to prevent rendering.

RepeatButtonInitializationRequested

Set to true to initialize repeat buttons elements.

SmallValueChange

Gets or sets a value to be added to or subtracted from the thumb's value using a keyboard./>.

ValueChange

Gets or sets a value to be added to or subtracted from the thumb's value using a pointer outside of the thumb.

Methods

Name Description
ChangeThumbValue(LinkedListNode<ThumbModel>, double)

Change thumb value.

CreatePositionStrategy()

Thumbs could have a specific position calculation.

EnrichDisabledC1Style(C1Style, C1Color)

Create style based on style and update it with disabled state.

GetIsEnabled()

Return the slider's IsEnabled.

GetMaximum()

Return the slider's maximum value.

GetMinimum()

Return the slider's minimum value.

GetOrientation()

Return the slider's Orientation.

GetThumbElementPosition(ThumbModel)

Get thumb's position based on the it's value.

GetThumbNode(int)

Get a thumb node.

GetValueDelta(double)

Calculate value's delta based on the offset in pixels.

InvalidateInnerStyle()

Invalidate inner control style.

OnAfterRenderAsync(bool)
OnFetchElementsSizeFromStyleRequested()

Calls to fetch control's elements sizes from the style.

OnRepeatButtonElementsInitializationRequested()

Calls to initialize repeat buttons elements.

ShouldRender()
ThumbGotFocus(LinkedListNode<ThumbModel>)

Calls when a thumb got the focus.

ThumbLostFocus()

Calls when a thumb lost the focus.

TurnOffElementsTransition()

Turn off elements transition.

TurnOnElementsTransition()

Turn on elements transition.

UpdateSizeParameters(double, double, double, double, double, double)

Update size parameters.

UpdateThumbValue(LinkedListNode<ThumbModel>, double)

Update thumb's value considering the conditions.