Skip to end of metadata
Go to start of metadata

Represents a control that provides a scroll bar that has a sliding Thumb whose position corresponds to a value.

Definition

public class UXScrollBar : ISRangeControl

Summary

The following table summarizes the members exposed in this class.

Public Constructors

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

Public Properties

Orientation Gets or sets whether the UXScrollBar is displayed horizontally or vertically.
OriginalValue Returns the real-time Value of the scrollbar element, particularly when Scroll event is raised.
ScrollBarStyle Gets or sets to apply to the ScrollBar element.
ViewportSize Gets or sets the amount of the scrollable content that is currently visible.

Protected Properties

Product Product Info.

Fields

Public Methods

AttachEventHandlers() Attach built-in event handlers to control templates. Call this method if necessary.
CoerceValue(double) Enforces the control to apply the specified value regardless of any conditions.
DetachedEventHandlers() Detach built-in event handlers from control templates. Call this method if necessary.
InitializeTemplates() Initializes control templates.

Protected Methods

OnMouseEnter(MouseEventArgs) Called before MouseEnter event occurs.
OnMouseLeave(MouseEventArgs) Called before the MouseLeave event occurs.
OnValueChanged(double, double) Occurs when the Value of the control changes.

Events

Scroll Occurs when the Value of the scrollbar changes.

Public Constructors

public UXScrollBar()

Initializes a new instance of UXScrollBar class.

Public Properties

public Orientation Orientation { get; set; }

Gets or sets whether the UXScrollBar is displayed horizontally or vertically.

public double OriginalValue { get; }

Returns the real-time Value of the scrollbar element, particularly when Scroll event is raised.

public Style ScrollBarStyle { get; set; }

Gets or sets to apply to the ScrollBar element.

public double ViewportSize { get; set; }

Gets or sets the amount of the scrollable content that is currently visible.

Protected Properties

protected ProductInfo Product { get; }

Product Info.

Fields

public static readonly DependencyProperty IsMouseOverProperty

public static readonly DependencyProperty IsPressedProperty

public static readonly DependencyProperty OrientationProperty

public static readonly DependencyProperty ScrollBarStyleProperty

public static readonly RoutedEvent ScrollEvent

Identifies the Scroll routed event.

public static readonly DependencyProperty ViewportSizeProperty

Public Methods

public void AttachEventHandlers()

Attach built-in event handlers to control templates. Call this method if necessary.

public void CoerceValue(double value)

Enforces the control to apply the specified value regardless of any conditions.

Parameters

value The new value to apply to the Value property of the control.

public void DetachedEventHandlers()

Detach built-in event handlers from control templates. Call this method if necessary.

public void InitializeTemplates()

Initializes control templates.

Protected Methods

protected void OnMouseEnter(MouseEventArgs e)

Called before MouseEnter event occurs.

Parameters

e The data for the event.

protected void OnMouseLeave(MouseEventArgs e)

Called before the MouseLeave event occurs.

Parameters

e The data for the event.

protected void OnValueChanged(double oldValue, double newValue)

Occurs when the Value of the control changes.

Parameters

oldValue The old value of the control.
newValue The new vlaue of the control.

Events

public event ScrollEventHandler Scroll

Occurs when the Value of the scrollbar changes.

  • No labels