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
MaximumProperty
Defines the Maximum property.
public static readonly StyledProperty<double> MaximumProperty
Field Value
MinimumProperty
Defines the Minimum property.
public static readonly StyledProperty<double> MinimumProperty
Field Value
SmallChangeProperty
Defines the SmallChange property.
public static readonly StyledProperty<double> SmallChangeProperty
Field Value
ValueChangedEvent
Defines the ValueChanged event.
public static readonly RoutedEvent<RangeBaseValueChangedEventArgs> ValueChangedEvent
Field Value
ValueProperty
Defines the Value property.
public static readonly StyledProperty<double> ValueProperty
Field Value
Properties
LargeChange
Gets or sets the large increment value added or subtracted from the Value.
public double LargeChange { get; set; }
Property Value
Maximum
Gets or sets the maximum possible value.
public double Maximum { get; set; }
Property Value
Minimum
Gets or sets the minimum possible value.
public double Minimum { get; set; }
Property Value
SmallChange
Gets or sets the small increment value added or subtracted from the Value.
public double SmallChange { get; set; }
Property Value
Value
Gets or sets the current value.
public double Value { get; set; }
Property Value
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
AvaloniaPropertyChangedEventArgsThe property change details.
Events
ValueChanged
Occurs when the Value property changes.
public event EventHandler<RangeBaseValueChangedEventArgs>? ValueChanged