Table of Contents

Class RangeBase

Namespace
Avalonia.Controls.Primitives
Assembly
Avalonia.Controls.dll

Base class for controls that display a value within a range.

public abstract class RangeBase : TemplatedControl, INotifyPropertyChanged, IDataContextProvider, ILogical, IThemeVariantHost, IResourceHost, IResourceNode, IStyleHost, ISetLogicalParent, ISetInheritanceParent, ISupportInitialize, IStyleable, INamed, IInputElement, IDataTemplateHost, ISetterValue
Inheritance
RangeBase
Implements
Derived
Inherited Members
Extension Methods

Constructors

RangeBase()

protected RangeBase()

Fields

LargeChangeProperty

Defines the LargeChange property.

public static readonly StyledProperty<double> LargeChangeProperty

Field Value

StyledProperty<double>

MaximumProperty

Defines the Maximum property.

public static readonly StyledProperty<double> MaximumProperty

Field Value

StyledProperty<double>

MinimumProperty

Defines the Minimum property.

public static readonly StyledProperty<double> MinimumProperty

Field Value

StyledProperty<double>

SmallChangeProperty

Defines the SmallChange property.

public static readonly StyledProperty<double> SmallChangeProperty

Field Value

StyledProperty<double>

ValueChangedEvent

Defines the ValueChanged event.

public static readonly RoutedEvent<RangeBaseValueChangedEventArgs> ValueChangedEvent

Field Value

RoutedEvent<RangeBaseValueChangedEventArgs>

ValueProperty

Defines the Value property.

public static readonly StyledProperty<double> ValueProperty

Field Value

StyledProperty<double>

Properties

LargeChange

Gets or sets the large increment value added or subtracted from the Value.

public double LargeChange { get; set; }

Property Value

double

Maximum

Gets or sets the maximum possible value.

public double Maximum { get; set; }

Property Value

double

Minimum

Gets or sets the minimum possible value.

public double Minimum { get; set; }

Property Value

double

SmallChange

Gets or sets the small increment value added or subtracted from the Value.

public double SmallChange { get; set; }

Property Value

double

Value

Gets or sets the current value.

public double Value { get; set; }

Property Value

double

Methods

OnDataContextBeginUpdate()

Called when the DataContext begins updating.

protected override void OnDataContextBeginUpdate()

OnDataContextEndUpdate()

Called when the DataContext finishes updating.

protected override void OnDataContextEndUpdate()

OnInitialized()

Called when the control finishes initialization.

protected override void OnInitialized()

OnPropertyChanged(AvaloniaPropertyChangedEventArgs)

Called when a avalonia property changes on the object.

protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)

Parameters

change AvaloniaPropertyChangedEventArgs

The property change details.

Events

ValueChanged

Occurs when the Value property changes.

public event EventHandler<RangeBaseValueChangedEventArgs>? ValueChanged

Event Type

EventHandler<RangeBaseValueChangedEventArgs>