ClassRadClock
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
RadClock()
Initializes a new instance of the RadClock class.
Declaration
[SuppressMessage("Microsoft.Performance", "CA1805:DoNotInitializeUnnecessarily")]
public RadClock()
Fields
CultureProperty
Identifies the CultureProperty property.
Declaration
public static readonly DependencyProperty CultureProperty
Field Value
DependencyProperty
EndTimeProperty
Identifies the EndTimeProperty property.
Declaration
public static readonly DependencyProperty EndTimeProperty
Field Value
DependencyProperty
HeaderProperty
Identifies the Header property.
Declaration
public static readonly DependencyProperty HeaderProperty
Field Value
DependencyProperty
HeaderTemplateProperty
Identifies the HeaderTemplate property.
Declaration
public static readonly DependencyProperty HeaderTemplateProperty
Field Value
DependencyProperty
IsReadOnlyProperty
Identifies the IsReadOnly property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
DependencyProperty
SelectedTimeProperty
Identifies the SelectedTimeProperty property.
Declaration
[Obsolete("This property is obsolete. Use the SelectedItem property.")]
public static readonly DependencyProperty SelectedTimeProperty
Field Value
DependencyProperty
StartTimeProperty
Identifies the StartTimeProperty property.
Declaration
public static readonly DependencyProperty StartTimeProperty
Field Value
DependencyProperty
TimeIntervalProperty
Identifies the TimeIntervalProperty property.
Declaration
public static readonly DependencyProperty TimeIntervalProperty
Field Value
DependencyProperty
Properties
Culture
Gets or sets the culture.
Declaration
public CultureInfo Culture { get; set; }
Property Value
The culture.
EndTime
Gets or sets the end time.
Declaration
public TimeSpan EndTime { get; set; }
Property Value
The end time.
Header
Gets or sets the header.
HeaderTemplate
Gets or sets the header template.
Declaration
public DataTemplate HeaderTemplate { get; set; }
Property Value
DataTemplate
IsReadOnly
Gets or sets a value indicating whether this instance is read only.
Declaration
public bool IsReadOnly { get; set; }
Property Value
True if this instance is read only; otherwise, false.
SelectedTime
Gets or sets the selected time.
Declaration
[TypeConverter(typeof(TimeSpanConverter))]
public TimeSpan? SelectedTime { get; set; }
Property Value
The selected time.
StartTime
Gets or sets the start time.
Declaration
public TimeSpan StartTime { get; set; }
Property Value
The start time.
TimeInterval
Gets or sets the time interval.
Declaration
public TimeSpan TimeInterval { get; set; }
Property Value
The time interval.
Methods
CanPerformSelection()
Indicates whether the selection helper can perform operation or not.
Declaration
protected override bool CanPerformSelection()
Returns
Returns true if the panel is not null or Grid, otherwise returns false.
Overrides
GenerateItemsSource()
Generates the items source.
Declaration
protected virtual IEnumerable GenerateItemsSource()
Returns
GetContainerForItemOverride()
Creates or identifies the element that is used to display the given item.
Declaration
protected override DependencyObject GetContainerForItemOverride()
Returns
DependencyObject
Overrides
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
protected override bool HandleKeyboardInput(Key key)
Parameters
key
Key
The key.
Returns
Overrides
IsItemItsOwnContainerOverride(object)
Determines if the specified item is (or is eligible to be) its own container.
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call .
Declaration
public override void OnApplyTemplate()
Overrides
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
The type-specific AutomationPeer implementation.
Overrides
OnGotFocus(RoutedEventArgs)
Called before the event occurs.
Declaration
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
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
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
Overrides
OnSelectedTimeChanged()
Called when the selected time is changed.
Declaration
protected virtual void OnSelectedTimeChanged()
OnSelectionChanged(SelectionChangedEventArgs)
Called when the selection changes.
Declaration
protected override void OnSelectionChanged(SelectionChangedEventArgs e)
Parameters
e
SelectionChangedEventArgs
The event data.
Overrides
PrepareContainerForItemOverride(DependencyObject, object)
Prepares the specified element to display the specified item.
Declaration
protected override void PrepareContainerForItemOverride(DependencyObject element, object item)
Parameters
element
DependencyObject
Element used to display the specified item.
item
Specified item.
Overrides
Events
SelectedTimeChanged
Occurs when the selected time was changed.
Declaration
public event EventHandler SelectedTimeChanged
Event Value