Class
RadClock

Represents a selection control that allows you to select time from grid.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
[Themable]
public class RadClock : RadListBox, IMultiSelector, ISelector, ISelectorInteraction, IAutocomplete, IListControl, ICommandSource, IScrollingServiceCore, IScrollingInfo

Inheritance: objectItemsControlSelectorListControlRadListBoxRadClock

Derived Classes: DateTimePickerClock

Implements: IAutocompleteICommandSourceIListControlIMultiSelectorIScrollingInfoIScrollingServiceCoreISelectorISelectorInteraction

Inherited Members RadListBox.DropVisualProviderPropertyRadListBox.DragDropBehaviorPropertyRadListBox.DragVisualProviderPropertyRadListBox.DataConverterPropertyRadListBox.IsItemSelectable(object)RadListBox.OnKeyDown(KeyEventArgs)RadListBox.OnTextInput(TextCompositionEventArgs)RadListBox.InitializeTextRetriever()RadListBox.GetDataItem(UIElement)RadListBox.UpdateItems(NotifyCollectionChangedAction, IList, IList)RadListBox.OnItemsChanged(NotifyCollectionChangedEventArgs)RadListBox.DropVisualProviderRadListBox.DragDropBehaviorRadListBox.DragVisualProviderRadListBox.DataConverterListControl.CanAutocompleteSelectItemsPropertyListControl.TextSearchModePropertyListControl.CanAutocompleteSelectPartialMatchesPropertyListControl.TypedTextPropertyListControl.CommandPropertyListControl.CommandParameterPropertyListControl.CommandTargetPropertyListControl.CanKeyboardNavigationSelectItemsPropertyListControl.IsScrollIntoViewEnabledPropertyListControl.ClearContainerForItemOverride(DependencyObject, object)ListControl.OnItemsPanelChanged(ItemsPanelTemplate, ItemsPanelTemplate)ListControl.OnPropertyChanged(DependencyPropertyChangedEventArgs)ListControl.ClearContainerStates(FrameworkElement)ListControl.HighlightedIndexChanged(int, Key)ListControl.OnMatchingItemChanged()ListControl.OnAutocompleteBehaviorTypedTextChanged()ListControl.IsIndexSelectable(int)ListControl.OnSelectionModeChanged()ListControl.GetScrollViewerPart()ListControl.ScrollIntoView(object)ListControl.ScrollIntoView(int)ListControl.SelectAllCommandListControl.CanAutocompleteSelectItemsListControl.CanAutocompleteSelectPartialMatchesListControl.TextSearchModeListControl.CanKeyboardNavigationSelectItemsListControl.IsScrollIntoViewEnabledListControl.TypedTextListControl.CommandListControl.CommandParameterListControl.CommandTargetListControl.IsItemsHostVisibleListControl.HighlightedItemListControl.KeyboardNavigationListControl.AutocompleteBehaviorListControl.HighlightedIndexItemsControlSelector.SelectionModePropertyItemsControlSelector.IsSynchronizedWithCurrentItemPropertyItemsControlSelector.SelectedIndexPropertyItemsControlSelector.SelectedItemPropertyItemsControlSelector.SelectedValuePropertyItemsControlSelector.SelectedValuePathPropertyItemsControlSelector.TextPropertyItemsControlSelector.TextPathPropertyItemsControlSelector.EnableSelectionCachingPropertyItemsControlSelector.SelectionChangedEventItemsControlSelector.OnItemsSourceChanged(IEnumerable, IEnumerable)ItemsControlSelector.ChangeVisualState(bool)ItemsControlSelector.OnIsEnabledChanged(DependencyPropertyChangedEventArgs)ItemsControlSelector.InitializeValueRetriever()ItemsControlSelector.InitializeSelectionBehavior()ItemsControlSelector.GetSelectionBehavior()ItemsControlSelector.EndInit()ItemsControlSelector.SelectionModeItemsControlSelector.IsSynchronizedWithCurrentItemItemsControlSelector.SelectedItemsItemsControlSelector.SelectionHelperItemsControlSelector.SelectedIndexItemsControlSelector.SelectedItemItemsControlSelector.SelectedValueItemsControlSelector.SelectedValuePathItemsControlSelector.SelectedValueBindingItemsControlSelector.TextBindingItemsControlSelector.TextItemsControlSelector.TextPathItemsControlSelector.EnableSelectionCachingItemsControlSelector.ItemSearchItemsControlSelector.ValueRetrieverItemsControlSelector.TextRetrieverItemsControlSelector.SelectionChanged

Constructors

RadClock()

Initializes a new instance of the RadClock class.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Performance", "CA1805:DoNotInitializeUnnecessarily")]
public RadClock()

Fields

CultureProperty

Identifies the CultureProperty property.

Declaration

cs-api-definition
public static readonly DependencyProperty CultureProperty

Field Value

DependencyProperty

EndTimeProperty

Identifies the EndTimeProperty property.

Declaration

cs-api-definition
public static readonly DependencyProperty EndTimeProperty

Field Value

DependencyProperty

HeaderProperty

Identifies the Header property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderProperty

Field Value

DependencyProperty

HeaderTemplateProperty

Identifies the HeaderTemplate property.

Declaration

cs-api-definition
public static readonly DependencyProperty HeaderTemplateProperty

Field Value

DependencyProperty

IsReadOnlyProperty

Identifies the IsReadOnly property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsReadOnlyProperty

Field Value

DependencyProperty

SelectedTimeProperty

Identifies the SelectedTimeProperty property.

Declaration

cs-api-definition
[Obsolete("This property is obsolete. Use the SelectedItem property.")]
public static readonly DependencyProperty SelectedTimeProperty

Field Value

DependencyProperty

StartTimeProperty

Identifies the StartTimeProperty property.

Declaration

cs-api-definition
public static readonly DependencyProperty StartTimeProperty

Field Value

DependencyProperty

TimeIntervalProperty

Identifies the TimeIntervalProperty property.

Declaration

cs-api-definition
public static readonly DependencyProperty TimeIntervalProperty

Field Value

DependencyProperty

Properties

Culture

Gets or sets the culture.

Declaration

cs-api-definition
public CultureInfo Culture { get; set; }

Property Value

CultureInfo

The culture.

EndTime

Gets or sets the end time.

Declaration

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

Property Value

TimeSpan

The end time.

Header

Gets or sets the header.

Declaration

cs-api-definition
public object Header { get; set; }

Property Value

object

HeaderTemplate

Gets or sets the header template.

Declaration

cs-api-definition
public DataTemplate HeaderTemplate { get; set; }

Property Value

DataTemplate

IsReadOnly

Gets or sets a value indicating whether this instance is read only.

Declaration

cs-api-definition
public bool IsReadOnly { get; set; }

Property Value

bool

True if this instance is read only; otherwise, false.

SelectedTime

Gets or sets the selected time.

Declaration

cs-api-definition
[TypeConverter(typeof(TimeSpanConverter))]
public TimeSpan? SelectedTime { get; set; }

Property Value

TimeSpan?

The selected time.

StartTime

Gets or sets the start time.

Declaration

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

Property Value

TimeSpan

The start time.

TimeInterval

Gets or sets the time interval.

Declaration

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

Property Value

TimeSpan

The time interval.

Methods

CanPerformSelection()

Indicates whether the selection helper can perform operation or not.

Declaration

cs-api-definition
protected override bool CanPerformSelection()

Returns

bool

Returns true if the panel is not null or Grid, otherwise returns false.

Overrides ListControl.CanPerformSelection()

GenerateItemsSource()

Generates the items source.

Declaration

cs-api-definition
protected virtual IEnumerable GenerateItemsSource()

Returns

IEnumerable

GetContainerForItemOverride()

Creates or identifies the element that is used to display the given item.

Declaration

cs-api-definition
protected override DependencyObject GetContainerForItemOverride()

Returns

DependencyObject

Overrides RadListBox.GetContainerForItemOverride()

HandleKeyboardInput(Key)

When overridden in a derived class, is invoked whenever application code or internal processes call HandleKeyboardInput(Key). Override this method if a custom keyboard navigation is required.

Declaration

cs-api-definition
protected override bool HandleKeyboardInput(Key key)

Parameters

key

Key

The key.

Returns

bool

Overrides RadListBox.HandleKeyboardInput(Key)

IsItemItsOwnContainerOverride(object)

Determines if the specified item is (or is eligible to be) its own container.

Declaration

cs-api-definition
protected override bool IsItemItsOwnContainerOverride(object item)

Parameters

item

object

The item to check.

Returns

bool

True if the item is (or is eligible to be) its own container; otherwise, false.

Overrides ListControl.IsItemItsOwnContainerOverride(object)

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides RadListBox.OnApplyTemplate()

OnCreateAutomationPeer()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The type-specific AutomationPeer implementation.

Overrides RadListBox.OnCreateAutomationPeer()

OnGotFocus(RoutedEventArgs)

Called before the event occurs.

Declaration

cs-api-definition
protected override void OnGotFocus(RoutedEventArgs e)

Parameters

e

RoutedEventArgs

The data for the event.

OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

Invoked when an unhandled  attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.

Declaration

cs-api-definition
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)

Parameters

e

KeyboardFocusChangedEventArgs

The KeyboardFocusChangedEventArgs that contains the event data.

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

Overrides RadListBox.OnInitialized(EventArgs)

OnSelectedTimeChanged()

Called when the selected time is changed.

Declaration

cs-api-definition
protected virtual void OnSelectedTimeChanged()

OnSelectionChanged(SelectionChangedEventArgs)

Called when the selection changes.

Declaration

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

Parameters

e

SelectionChangedEventArgs

The event data.

Overrides RadListBox.OnSelectionChanged(SelectionChangedEventArgs)

PrepareContainerForItemOverride(DependencyObject, object)

Prepares the specified element to display the specified item.

Declaration

cs-api-definition
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)

Parameters

element

DependencyObject

Element used to display the specified item.

item

object

Specified item.

Overrides ListControl.PrepareContainerForItemOverride(DependencyObject, object)

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()

Events

SelectedTimeChanged

Occurs when the selected time was changed.

Declaration

cs-api-definition
public event EventHandler SelectedTimeChanged

Event Value

EventHandler