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

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

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

C#
[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

Initializes a new instance of the RadClock class.

C#
public RadClock()

Fields

CultureProperty

DependencyProperty

Identifies the CultureProperty property.

C#
public static readonly DependencyProperty CultureProperty

EndTimeProperty

DependencyProperty

Identifies the EndTimeProperty property.

C#
public static readonly DependencyProperty EndTimeProperty

HeaderProperty

DependencyProperty

Identifies the Header property.

C#
public static readonly DependencyProperty HeaderProperty

HeaderTemplateProperty

DependencyProperty

Identifies the HeaderTemplate property.

C#
public static readonly DependencyProperty HeaderTemplateProperty

IsReadOnlyProperty

DependencyProperty

Identifies the IsReadOnly property.

C#
public static readonly DependencyProperty IsReadOnlyProperty

SelectedTimeProperty

DependencyProperty

Identifies the SelectedTimeProperty property.

C#
[Obsolete("This property is obsolete. Use the SelectedItem property.")]
public static readonly DependencyProperty SelectedTimeProperty

StartTimeProperty

DependencyProperty

Identifies the StartTimeProperty property.

C#
public static readonly DependencyProperty StartTimeProperty

TimeIntervalProperty

DependencyProperty

Identifies the TimeIntervalProperty property.

C#
public static readonly DependencyProperty TimeIntervalProperty

Properties

Gets or sets the culture.

C#
public CultureInfo Culture { get; set; }
Property Value:

The culture.

Gets or sets the end time.

C#
public TimeSpan EndTime { get; set; }
Property Value:

The end time.

Gets or sets the header.

C#
public object Header { get; set; }

HeaderTemplate

DataTemplate

Gets or sets the header template.

C#
public DataTemplate HeaderTemplate { get; set; }

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

C#
public bool IsReadOnly { get; set; }
Property Value:

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

Gets or sets the selected time.

C#
[TypeConverter(typeof(TimeSpanConverter))]
public TimeSpan? SelectedTime { get; set; }
Property Value:

The selected time.

Gets or sets the start time.

C#
public TimeSpan StartTime { get; set; }
Property Value:

The start time.

Gets or sets the time interval.

C#
public TimeSpan TimeInterval { get; set; }
Property Value:

The time interval.

Methods

Indicates whether the selection helper can perform operation or not.

C#
protected override bool CanPerformSelection()
Returns:

bool

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

Overrides: ListControl.CanPerformSelection()

Generates the items source.

C#
protected virtual IEnumerable GenerateItemsSource()
Returns:

IEnumerable

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

C#
protected override DependencyObject GetContainerForItemOverride()
Returns:

DependencyObject

Overrides: RadListBox.GetContainerForItemOverride()

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.

C#
protected override bool HandleKeyboardInput(Key key)
Parameters:keyKey

The key.

Returns:

bool

Overrides: RadListBox.HandleKeyboardInput(Key)

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

C#
protected override bool IsItemItsOwnContainerOverride(object item)
Parameters:itemobject

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)

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

C#
public override void OnApplyTemplate()

Overrides: RadListBox.OnApplyTemplate()

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

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

Overrides: RadListBox.OnCreateAutomationPeer()

Called before the event occurs.

C#
protected override void OnGotFocus(RoutedEventArgs e)
Parameters:eRoutedEventArgs

The data for the event.

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.

C#
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters:eKeyboardFocusChangedEventArgs

The KeyboardFocusChangedEventArgs that contains the event data.

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

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Overrides: RadListBox.OnInitialized(EventArgs)

Called when the selected time is changed.

C#
protected virtual void OnSelectedTimeChanged()

Called when the selection changes.

C#
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters:eSelectionChangedEventArgs

The event data.

Overrides: RadListBox.OnSelectionChanged(SelectionChangedEventArgs)

Prepares the specified element to display the specified item.

C#
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters:elementDependencyObject

Element used to display the specified item.

itemobject

Specified item.

Overrides: ListControl.PrepareContainerForItemOverride(DependencyObject, object)

Resets the theme.

C#
public void ResetTheme()

Events

Occurs when the selected time was changed.

C#
public event EventHandler SelectedTimeChanged