Class
DurationPicker

Represents an editable control showing predefined time durations in minutes, hours, days and weeks.

Definition

Namespace:Telerik.UI.Xaml.Controls

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class DurationPicker : ComboBox

Inheritance: objectDurationPicker

Constructors

DurationPicker()

Initializes a new instance of the DurationPicker class.

Declaration

cs-api-definition
public DurationPicker()

Fields

SelectedDurationProperty

Identifies the SelectedDuration property.

Declaration

cs-api-definition
public static readonly DependencyProperty SelectedDurationProperty

Field Value

DependencyProperty

The identifier for the SelectedDuration property.

Properties

SelectedDuration

Gets or sets currently selected duration. This is a dependency property.

Declaration

cs-api-definition
public TimeSpan SelectedDuration { get; set; }

Property Value

TimeSpan

Selected duration. The default value is Zero

Methods

OnApplyTemplate()

Called when ApplyTemplate is called.

Declaration

cs-api-definition
protected override void OnApplyTemplate()

OnSelectedDurationChanged(DependencyPropertyChangedEventArgs)

Updates the text of the editable text box when SelectedDuration is changed.

Declaration

cs-api-definition
protected virtual void OnSelectedDurationChanged(DependencyPropertyChangedEventArgs args)

Parameters

args

DependencyPropertyChangedEventArgs