Track class
이 콘텐츠는 아직 번역되지 않았습니다.
Lays a thumb and two paging regions out along an axis for a value in a range, and answers which value a point or a drag distance stands for. A template registers it as a part; the owning control pushes the range and value in and maps the thumb’s drags back. It draws nothing itself.
Guide: C# Markup guide
public sealed class Track : FrameworkElement, IVisualTreeHostPublic Members
Section titled “Public Members”| name | description |
|---|---|
| Track() | The default constructor. |
| DecreaseElement { get; set; } | Gets or sets the element filling the region between the minimum end and the thumb. |
| IncreaseElement { get; set; } | Gets or sets the element filling the region between the thumb and the maximum end. |
| IsDirectionReversed { get; set; } | Gets or sets whether the minimum sits at the far end, as it does on a vertical slider. |
| Maximum { get; set; } | Gets or sets the maximum value. |
| Minimum { get; set; } | Gets or sets the minimum value. |
| Orientation { get; set; } | Gets or sets the axis the thumb travels along. |
| Thumb { get; set; } | Gets or sets the thumb element. |
| ThumbLength { get; set; } | Gets or sets the thumb’s length along the axis; NaN takes the thumb element’s desired length. |
| Value { get; set; } | Gets or sets the value the thumb is placed for. |
| ViewportSize { get; set; } | Gets or sets the viewport size in value units, which sizes the thumb like a scroll bar; NaN keeps the thumb at ThumbLength, as a slider does. |
| ValueFromDistance(…) | The value change a thumb drag of distance along the axis stands for. |
| ValueFromPoint(…) | The value whose thumb would be centered on point, in the space of Bounds. |
| static readonly DecreaseElementProperty | |
| static readonly IncreaseElementProperty | |
| static readonly IsDirectionReversedProperty | |
| static readonly MaximumProperty | |
| static readonly MinimumProperty | |
| static readonly OrientationProperty | |
| static readonly ThumbLengthProperty | |
| static readonly ThumbProperty | |
| static readonly ValueProperty | |
| static readonly ViewportSizeProperty |
See Also
Section titled “See Also”- class FrameworkElement
- interface IVisualTreeHost
- namespace Aprillz.MewUI.Controls