[]
        
(Showing Draft Content)

C1.WPF.C1RangeSlider

C1RangeSlider Class

The C1RangeSlider control enables the end-user to select two values from a range by moving two Thumb controls along a track.

Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
[TemplatePart(Name = "LowerThumb", Type = typeof(Thumb))]
[TemplatePart(Name = "UpperThumb", Type = typeof(Thumb))]
[TemplatePart(Name = "DecreaseRepeatButton", Type = typeof(RepeatButton))]
[TemplatePart(Name = "IncreaseRepeatButton", Type = typeof(RepeatButton))]
[TemplatePart(Name = "MiddleThumb", Type = typeof(Thumb))]
[TemplatePart(Name = "VerticalLowerThumb", Type = typeof(Thumb))]
[TemplatePart(Name = "VerticalUpperThumb", Type = typeof(Thumb))]
[TemplatePart(Name = "VerticalMiddleThumb", Type = typeof(Thumb))]
[TemplatePart(Name = "VerticalDecreaseRepeatButton", Type = typeof(RepeatButton))]
[TemplatePart(Name = "VerticalIncreaseRepeatButton", Type = typeof(RepeatButton))]
[TemplatePart(Name = "HorizontalTemplate", Type = typeof(Grid))]
[TemplatePart(Name = "VerticalTemplate", Type = typeof(Grid))]
[TemplateVisualState(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualState(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Unfocused", GroupName = "FocusStates")]
[TemplateVisualState(Name = "Valid", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
[TemplateVisualState(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
[StyleTypedProperty(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
public class C1RangeSlider : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient

Constructors

Name Description
C1RangeSlider()

Initializes a new instance of a C1RangeSlider.

Fields

Name Description
DelayProperty

Identifies the Delay dependency property.

FocusBrushProperty

Identifies the FocusBrush dependency property.

IntervalProperty

Identifies the Interval dependency property.

IsFocusedProperty

Identifies the IsFocused dependency property.

LowerValueProperty

Identifies the LowerValue dependency property.

MaximumProperty

Identifies the Maximum dependency property.

MinimumProperty

Identifies the Minimum dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

OrientationProperty

Identifies the Orientation dependency property.

PressedBrushProperty

Identifies the PressedBrush dependency property.

RangeSliderBarVisibilityProperty

Identifies the RangeSliderBarVisibility dependency property.

ScrollBehaviorProperty

Identifies the ScrollBehavior dependency property.

SmallValueChangeProperty

Identifies the SmallValueChange dependency property.

UpperValueProperty

Identifies the UpperValue dependency property.

ValidationDecoratorStyleProperty

Identifies the ValidationDecoratorStyle dependency property.

ValueChangeProperty

Identifies the ValueChange dependency property.

Properties

Name Description
Delay

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

FocusBrush

Gets or sets the Brush used to highlight the focused control.

Interval

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

IsFocused

Returns true if the control has the focus.

LowerValue

Gets or sets the current lower magnitude of the range control.

Maximum

Gets or sets the maximum possible value of the range element.

Minimum

Gets or sets the minimum possible value of the range element.

MouseOverBrush

Gets or sets the Brush used to highlight the control when it has the mouse over.

Orientation

The Orientation of the C1RangeSlider.

PressedBrush

Gets or sets the Brush used to paint a button when it is pressed.

RangeSliderBarVisibility

Gets or sets a value that indicates whether C1RangeSlider bar should be displayed.

ScrollBehavior

Gets or sets how thumbs will be moved when mouse click will be performed outside selected area.

SmallValueChange

Gets or sets a value to be added to or subtracted from the Upper/LowerValue of a RangeBase control.

UpperValue

Gets or sets the current upper magnitude of the range control.

ValidationDecoratorStyle

Gets or sets the style that is applied to the inner C1ValidationDecorator.

ValueChange

Gets or sets a value to be added to or subtracted from the Upper/LowerValue of a RangeBase control.

Methods

Name Description
ChangeVisualStateCommon(bool)

Updates the current visual state of the Common visual state group to match the object's properties.

ChangeVisualStateFocus(bool)

Updates the current visual state of the Focus visual state group to match the object's properties.

OnApplyTemplate()

Builds the visual tree for the C1RangeSlider control when a new template is applied.

OnLowerValueChanged(EventArgs)

Raises the C1.Silverlight.C1RangeSlider.LowerValueChanged event.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

Invoked whenever the effective value of any dependency property has been updated.

OnUpperValueChanged(EventArgs)

Raises the C1.Silverlight.C1RangeSlider.UpperValueChanged event.

OnValueChanged(EventArgs)

Raises the C1.Silverlight.C1RangeSlider.ValueChanged event.

PixelsToUnits(double)

Converts pixels to it´s corresponding unit value in the range slider

UpdateTrackLayout()

This method will take the current min, max, and value to calculate and layout the current control measurements.

Events

Name Description
IsMouseOverChanged

Event raised when the IsMouseOver property has changed.

LowerValueChanged

Fires when the LowerValue property changes.

OrientationChanged

Event raised when the Orientation property has changed.

UpperValueChanged

Fires when the UpperValue property changes.

ValueChanged

Fires when any of the properties: LowerValue or UpperValue changes.

Extension Methods