Skip to end of metadata
Go to start of metadata

Remarks

The track in UXSliderBar represents the range span of values that can be selected by user. The lowest possible value in UXSliderBar is specified in Minimum property, while the highest possible value is specified in Maximum property. The LargeChange and SmallChange properties indicates the value to be added or substracted from the value of UXSliderBar.

The following example shows how to define a simple UXSliderBar in XAML.

View

Working with ValueRangeVisibility Property

You can use ValueRangeVisibility property to display a value range track in UXSliderBar to indicate the active selection in UXSliderBar. The range starts from the value of Minimum property to the selected value in UXSliderBar.

The following example shows how to dislay the value range track in UXSliderBar.

View

Definition

public class UXSliderBar : UXSliderBarBase

Summary

The following table summarizes the members exposed in this class.

Public Constructors

UXSliderBar Constructor()Initializes a new instance of UXSliderBar class.

Public Properties

ThumbStyleGets or sets the style applied to the UXThumb instance.
ValueRangeVisibilityGets or sets the whether the value range visual element is visible.

Protected Properties

ProductProduct Info.

Fields

ThumbStylePropertyIdentifies the ThumbStyle dependency property.
ValueRangeVisibilityPropertyIdentifies the ValueRangeVisibility dependency property.

Public Methods

AttachEventHandlers()Attaches the event handlers for UI elements in slider bar.
DetachedEventHandlers()Detaches the event handlers for UI elements in slider bar.
InitializeTemplates()Initializes the templates for slider bar.
OnApplyTemplate()Builds the visual tree for the UXSliderBar when a new template is applied.

Protected Methods

OnMouseWheel(MouseWheelEventArgs)Provides handling for mouse wheel action.
OnValueChanged(double, double)Provides handling when the value of Value property is changed.

Public Constructors

public UXSliderBar()

Initializes a new instance of UXSliderBar class.

Public Properties

public Style ThumbStyle { get; set; }

Gets or sets the style applied to the UXThumb instance.

public Visibility ValueRangeVisibility { get; set; }

Gets or sets the whether the value range visual element is visible.

Protected Properties

protected ProductInfo Product { get; }

Product Info.

Fields

public static readonly DependencyProperty ThumbStyleProperty

Identifies the ThumbStyle dependency property.

public static readonly DependencyProperty ValueRangeVisibilityProperty

Identifies the ValueRangeVisibility dependency property.

Public Methods

public void AttachEventHandlers()

Attaches the event handlers for UI elements in slider bar.

public void DetachedEventHandlers()

Detaches the event handlers for UI elements in slider bar.

public void InitializeTemplates()

Initializes the templates for slider bar.

public void OnApplyTemplate()

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

Protected Methods

protected void OnMouseWheel(MouseWheelEventArgs e)

Provides handling for mouse wheel action.

Parameters

eMouseWheel event args.

 

protected void OnValueChanged(double oldValue, double newValue)

Provides handling when the value of Value property is changed.

Parameters

oldValueSpecifies the old value of Value property.
newValueSpecifies the new value of Value property.
  • No labels