Class
DurationPicker

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

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
public class DurationPicker : RadComboBox

Inheritance: objectRadComboBoxDurationPicker

Inherited Members RadComboBox.CommandPropertyRadComboBox.CommandParameterPropertyRadComboBox.CommandTargetPropertyRadComboBox.IsWatermarkVisiblePropertyRadComboBox.CanAutocompleteSelectItemsPropertyRadComboBox.CanKeyboardNavigationSelectItemsPropertyRadComboBox.NonEditableTemplatePropertyRadComboBox.EditableTemplatePropertyRadComboBox.MinDropDownWidthPropertyRadComboBox.IsDropDownOpenPropertyRadComboBox.MaxDropDownHeightPropertyRadComboBox.IsReadOnlyPropertyRadComboBox.IsEditablePropertyRadComboBox.IsMouseWheelEnabledPropertyRadComboBox.OpenDropDownOnFocusPropertyRadComboBox.SelectionBoxItemPropertyRadComboBox.SelectionBoxItemTemplatePropertyRadComboBox.SelectionBoxTemplatePropertyRadComboBox.EmptySelectionBoxTemplatePropertyRadComboBox.EmptyTextPropertyRadComboBox.TextPropertyRadComboBox.IsFilteringEnabledPropertyRadComboBox.TextSearchModePropertyRadComboBox.FilteringModePropertyRadComboBox.IsHighlightedPropertyRadComboBox.StaysOpenOnEditPropertyRadComboBox.ClearSelectionButtonVisibilityPropertyRadComboBox.ClearSelectionButtonContentPropertyRadComboBox.SelectAllTextEventPropertyRadComboBox.DropDownWidthPropertyRadComboBox.TextBoxStylePropertyRadComboBox.IsDropDownTabNavigationEnabledPropertyRadComboBox.UpdateSelectionOnLostFocusPropertyRadComboBox.DropDownButtonIconContentPropertyRadComboBox.DropDownButtonIconTemplatePropertyRadComboBox.AutoCompleteSelectionModePropertyRadComboBox.AdditionalContentPositionPropertyRadComboBox.AdditionalContentPropertyRadComboBox.AdditionalContentTemplatePropertyRadComboBox.AllowMultipleSelectionPropertyRadComboBox.MultipleSelectionBoxTemplatePropertyRadComboBox.MultipleSelectionSeparatorPropertyRadComboBox.MultipleSelectionSeparatorStringFormatPropertyRadComboBox.HandleTextInput(string)RadComboBox.HandleKeyDown(Key, int)RadComboBox.ChangeVisualState(bool)RadComboBox.OnInitialized(EventArgs)RadComboBox.OnCreateAutomationPeer()RadComboBox.OnScrollIntoView(int)RadComboBox.ClearContainerForItemOverride(DependencyObject, object)RadComboBox.GetContainerForItemOverride()RadComboBox.IsItemItsOwnContainerOverride(object)RadComboBox.PrepareContainerForItemOverride(DependencyObject, object)RadComboBox.OnDropDownClosed(EventArgs)RadComboBox.OnDropDownOpened(EventArgs)RadComboBox.OnIsDropDownOpenChanged(bool, bool)RadComboBox.OnIsEditableChanged(bool, bool)RadComboBox.OnIsMouseWheelEnabledChanged(bool, bool)RadComboBox.OnTextChanged(string, string)RadComboBox.OnMouseWheel(MouseWheelEventArgs)RadComboBox.OnTextInput(TextCompositionEventArgs)RadComboBox.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)RadComboBox.OnTextBoxStyleChanged()RadComboBox.CommandRadComboBox.CommandParameterRadComboBox.CommandTargetRadComboBox.CanAutocompleteSelectItemsRadComboBox.CanKeyboardNavigationSelectItemsRadComboBox.NonEditableTemplateRadComboBox.EditableTemplateRadComboBox.TextSearchModeRadComboBox.IsFilteringEnabledRadComboBox.IsDropDownOpenRadComboBox.DropDownWidthRadComboBox.IsEditableRadComboBox.IsWatermarkVisibleRadComboBox.IsHighlightedRadComboBox.OpenDropDownOnFocusRadComboBox.IsReadOnlyRadComboBox.UpdateTextOnLostFocusRadComboBox.MaxDropDownHeightRadComboBox.MinDropDownWidthRadComboBox.SelectionBoxItemRadComboBox.SelectionBoxTemplateRadComboBox.EmptyTextRadComboBox.EmptySelectionBoxTemplateRadComboBox.SelectionBoxItemTemplateRadComboBox.StaysOpenOnEditRadComboBox.IsMouseWheelEnabledRadComboBox.TextRadComboBox.ClearSelectionButtonVisibilityRadComboBox.ClearSelectionButtonContentRadComboBox.SelectAllTextEventRadComboBox.TextBoxStyleRadComboBox.IsDropDownTabNavigationEnabledRadComboBox.UpdateSelectionOnLostFocusRadComboBox.FilteringBehaviorRadComboBox.DropDownButtonIconContentRadComboBox.DropDownButtonIconTemplateRadComboBox.AutoCompleteSelectionModeRadComboBox.AdditionalContentPositionRadComboBox.AdditionalContentRadComboBox.AdditionalContentTemplateRadComboBox.TextInputStringRadComboBox.HandlesScrollingRadComboBox.AllowMultipleSelectionRadComboBox.MultipleSelectionBoxTemplateRadComboBox.MultipleSelectionSeparatorRadComboBox.MultipleSelectionSeparatorStringFormatRadComboBox.DropDownClosedRadComboBox.DropDownOpened

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
public override void OnApplyTemplate()

Overrides RadComboBox.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

OnSelectionChanged(SelectionChangedEventArgs)

Called when the selection changes.

Declaration

cs-api-definition
protected override void OnSelectionChanged(SelectionChangedEventArgs e)

Parameters

e

SelectionChangedEventArgs

The event data.

Overrides RadComboBox.OnSelectionChanged(SelectionChangedEventArgs)