ScrollableHorizontalSelector Class
Provides the base class for a Selector that supports horizontal scrolling.
public class ScrollableHorizontalSelector : Selector
- Inheritance:
- object Visual UIElement FrameworkElement Control ItemsControl Selector object
- Derived:
- GroupPresenter TabStrip
Constructors
ScrollableHorizontalSelector()
Initializes an instance of the class.
public ScrollableHorizontalSelector()
Properties
CanScrollLeft
Gets whether the items can scroll left.
public bool CanScrollLeft { get; }
Property Value
- bool:
true
if the items can scroll left; otherwise,false
.
CanScrollRight
Gets whether the items can scroll right.
public bool CanScrollRight { get; }
Property Value
- bool:
true
if the items can scroll right; otherwise,false
.
IsMinContentWidth
Gets whether the items are all at minimum width.
public bool IsMinContentWidth { get; }
Property Value
- bool:
true
if the items are all at minimum width; otherwise,false
.
ScrollOffset
Gets or sets the current scroll offset.
SelectionElement
Gets or sets the FrameworkElement to animate as a selection element.
public FrameworkElement SelectionElement { get; set; }
Property Value
- FrameworkElement:
The FrameworkElement to animate as a selection element.
Methods
ArrangeOverride(Size)
When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
protected override Size ArrangeOverride(Size arrangeBounds)
Parameter | Type | Description |
---|---|---|
arrangeBounds | Size | The final area within the parent that this element should use to arrange itself and its children. |
Returns
- Size:
The actual size used.
ArrangeSelectionElement(bool)
Arranges the selection element into position.
protected virtual void ArrangeSelectionElement(bool animate)
Parameter | Type | Description |
---|---|---|
animate | bool | Whether to allow animation. |
OnSelectionChanged(SelectionChangedEventArgs)
Occurs when the selection has changed.
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameter | Type | Description |
---|---|---|
e | SelectionChangedEventArgs | The |
Fields
CanScrollLeftProperty
Identifies the CanScrollLeft dependency property. This field is read-only.
public static readonly DependencyProperty CanScrollLeftProperty
CanScrollRightProperty
Identifies the CanScrollRight dependency property. This field is read-only.
public static readonly DependencyProperty CanScrollRightProperty
IsMinContentWidthProperty
Identifies the IsMinContentWidth dependency property. This field is read-only.
public static readonly DependencyProperty IsMinContentWidthProperty
ScrollOffsetProperty
Identifies the ScrollOffset dependency property. This field is read-only.
public static readonly DependencyProperty ScrollOffsetProperty