DateTimeRangePicker class¶
Defined in
Namespace: CrissCross.Avalonia.UI.Controls
Assembly: CrissCross.Avalonia.UI.dll
Full name: CrissCross.Avalonia.UI.Controls.DateTimeRangePicker
Modifiers: public
Summary¶
Represents a date/time range picker surface for reports, logs, and dashboard filters.
Applies to
net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net471
Class hierarchy
classDiagram
class DateTimeRangePicker
class TemplatedControl
TemplatedControl <|-- DateTimeRangePicker
Inherits from: TemplatedControl
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [DateTimeRangePicker](# class. |
Properties¶
| Name | Summary |
|---|---|
| Start | Gets or sets the selected range start. |
| End | Gets or sets the selected range end. |
| CurrentRange | Gets or sets the current resolved range. |
| SelectedPreset | Gets or sets the selected preset used to resolve the range. |
| RangeLabel | Gets or sets the optional custom label used when formatting the range. |
| ReferenceTime | Gets or sets the reference instant used to resolve relative presets. |
| RangeChangedCommand | Gets or sets the command invoked after the control emits a range. |
| ApplyRangeCommand | Gets the command that applies the current custom range values. |
| ApplyPresetCommand | Gets the command that applies a named range preset. |
Fields¶
| Name | Summary |
|---|---|
| static StartProperty | Property for [Start](# |
| static EndProperty | Property for [End](# |
| static CurrentRangeProperty | Property for [CurrentRange](# |
| static SelectedPresetProperty | Property for [SelectedPreset](# |
| static RangeLabelProperty | Property for [RangeLabel](# |
| static ReferenceTimeProperty | Property for [ReferenceTime](# |
| static RangeChangedCommandProperty | Property for [RangeChangedCommand](# |
Methods¶
| Name | Summary |
|---|---|
| CreateRange | Creates a range from the current picker state. |
| ApplyRange | Applies the current custom range values and emits a range-changed command. |
| ApplyPreset | Applies a named preset and emits a range-changed command. |
| OnPropertyChanged | Called when a avalonia property changes on the object. |