Class Track
- Namespace
- Avalonia.Controls.Primitives
- Assembly
- Avalonia.Controls.dll
[PseudoClasses(new string[] { ":vertical", ":horizontal" })]
public class Track : Control, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue
- Inheritance
-
Track
- Implements
- Inherited Members
- Extension Methods
Constructors
Track()
public Track()
Fields
DecreaseButtonProperty
public static readonly StyledProperty<Button?> DecreaseButtonProperty
Field Value
DeferThumbDragProperty
public static readonly StyledProperty<bool> DeferThumbDragProperty
Field Value
IgnoreThumbDragProperty
public static readonly StyledProperty<bool> IgnoreThumbDragProperty
Field Value
IncreaseButtonProperty
public static readonly StyledProperty<Button?> IncreaseButtonProperty
Field Value
IsDirectionReversedProperty
public static readonly StyledProperty<bool> IsDirectionReversedProperty
Field Value
MaximumProperty
public static readonly StyledProperty<double> MaximumProperty
Field Value
MinimumProperty
public static readonly StyledProperty<double> MinimumProperty
Field Value
OrientationProperty
public static readonly StyledProperty<Orientation> OrientationProperty
Field Value
ThumbProperty
public static readonly StyledProperty<Thumb?> ThumbProperty
Field Value
ValueProperty
public static readonly StyledProperty<double> ValueProperty
Field Value
ViewportSizeProperty
public static readonly StyledProperty<double> ViewportSizeProperty
Field Value
Properties
DecreaseButton
public Button? DecreaseButton { get; set; }
Property Value
DeferThumbDrag
public bool DeferThumbDrag { get; set; }
Property Value
IgnoreThumbDrag
public bool IgnoreThumbDrag { get; set; }
Property Value
IncreaseButton
public Button? IncreaseButton { get; set; }
Property Value
IsDirectionReversed
public bool IsDirectionReversed { get; set; }
Property Value
Maximum
public double Maximum { get; set; }
Property Value
Minimum
public double Minimum { get; set; }
Property Value
Orientation
public Orientation Orientation { get; set; }
Property Value
Thumb
[Content]
public Thumb? Thumb { get; set; }
Property Value
Value
public double Value { get; set; }
Property Value
ViewportSize
public double ViewportSize { get; set; }
Property Value
Methods
ArrangeOverride(Size)
Positions child elements as part of a layout pass.
protected override Size ArrangeOverride(Size arrangeSize)
Parameters
arrangeSize
Size
Returns
- Size
The actual size used.
MeasureOverride(Size)
Measures the control and its child elements as part of a layout pass.
protected override Size MeasureOverride(Size availableSize)
Parameters
availableSize
SizeThe size available to the control.
Returns
- Size
The desired size for the control.
OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
Called when a avalonia property changes on the object.
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
Parameters
change
AvaloniaPropertyChangedEventArgsThe property change details.
ValueFromDistance(double, double)
public virtual double ValueFromDistance(double horizontal, double vertical)
Parameters
horizontal
doubleThe horizontal displacement of the thumb.
vertical
doubleThe vertical displacement of the thumb.
Returns
ValueFromPoint(Point)
Calculates the distance along the Thumb of a specified point along the track.
public virtual double ValueFromPoint(Point point)
Parameters
point
PointThe specified point.
Returns
- double
The distance between the Thumb and the specified pt value.