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:
[Themable]
public class RadClock : RadListBox, IMultiSelector, ISelector, ISelectorInteraction, IAutocomplete, IListControl, ICommandSource, IScrollingServiceCore, IScrollingInfo
Inheritance: objectItemsControlSelectorListControlRadListBoxRadClock
Derived Classes:
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadClock class.
public RadClock()
Fields
CultureProperty
DependencyProperty
Identifies the CultureProperty property.
public static readonly DependencyProperty CultureProperty
EndTimeProperty
DependencyProperty
Identifies the EndTimeProperty property.
public static readonly DependencyProperty EndTimeProperty
HeaderProperty
DependencyProperty
Identifies the Header property.
public static readonly DependencyProperty HeaderProperty
HeaderTemplateProperty
DependencyProperty
Identifies the HeaderTemplate property.
public static readonly DependencyProperty HeaderTemplateProperty
IsReadOnlyProperty
DependencyProperty
Identifies the IsReadOnly property.
public static readonly DependencyProperty IsReadOnlyProperty
SelectedTimeProperty
DependencyProperty
Identifies the SelectedTimeProperty property.
[Obsolete("This property is obsolete. Use the SelectedItem property.")]
public static readonly DependencyProperty SelectedTimeProperty
StartTimeProperty
DependencyProperty
Identifies the StartTimeProperty property.
public static readonly DependencyProperty StartTimeProperty
TimeIntervalProperty
DependencyProperty
Identifies the TimeIntervalProperty property.
public static readonly DependencyProperty TimeIntervalProperty
Properties
Gets or sets the culture.
public CultureInfo Culture { get; set; }
The culture.
Gets or sets the end time.
public TimeSpan EndTime { get; set; }
The end time.
HeaderTemplate
DataTemplate
Gets or sets the header template.
public DataTemplate HeaderTemplate { get; set; }
Gets or sets a value indicating whether this instance is read only.
public bool IsReadOnly { get; set; }
True if this instance is read only; otherwise, false.
Gets or sets the selected time.
[TypeConverter(typeof(TimeSpanConverter))]
public TimeSpan? SelectedTime { get; set; }
The selected time.
Gets or sets the start time.
public TimeSpan StartTime { get; set; }
The start time.
Gets or sets the time interval.
public TimeSpan TimeInterval { get; set; }
The time interval.
Methods
Indicates whether the selection helper can perform operation or not.
protected override bool CanPerformSelection()
Returns true if the panel is not null or Grid, otherwise returns false.
Overrides:
Generates the items source.
GetContainerForItemOverride()
DependencyObject
Creates or identifies the element that is used to display the given item.
protected override DependencyObject GetContainerForItemOverride()
DependencyObject
Overrides:
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.
protected override bool HandleKeyboardInput(Key key)
The key.
Returns:Overrides:
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
public override void OnApplyTemplate()
Overrides:
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
Overrides:
Called before the event occurs.
protected override void OnGotFocus(RoutedEventArgs e)
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.
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
The KeyboardFocusChangedEventArgs that contains the event data.
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Overrides:
Called when the selected time is changed.
protected virtual void OnSelectedTimeChanged()
Called when the selection changes.
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
The event data.
Overrides:
Prepares the specified element to display the specified item.
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Element used to display the specified item.
itemobjectSpecified item.
Overrides:
Resets the theme.
public void ResetTheme()
Events
Occurs when the selected time was changed.
public event EventHandler SelectedTimeChanged