New to Telerik UI for WPFStart a free 30-day trial

Predefined date time range that can be used for easier UI selection.

Definition

Namespace:Telerik.Windows.Controls.DateRangePicker

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
public class CustomRange

Inheritance: objectCustomRange

Constructors

Initializes a new instance of the CustomRange class.

C#
public CustomRange()

Initializes a new instance of the CustomRange class.

C#
public CustomRange(string name)
Parameters:namestring

Custom range UI label.

Properties

Gets or sets the end date of the range.

C#
public DateTime? EndDate { get; set; }

Gets or sets a value indicating whether the custom range should be selected by default. In multiple ranges scenarios, the last one with this property set to true will be selected.

C#
public bool IsSelectedByDefault { get; set; }

Gets or sets the UI name (label) of the range.

C#
public string Name { get; set; }

Gets or sets the start date of the range.

C#
public DateTime? StartDate { get; set; }