RadTimeSpanPicker
Represents a control that allows the user to select TimeSpans.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
[TelerikToolboxCategory("Input")]
public class RadTimeSpanPicker : Control
Inheritance: objectRadTimeSpanPicker
Constructors
Initializes a new instance of the RadTimeSpanPicker class.
public RadTimeSpanPicker()
Fields
DropDownWidthProperty
DependencyProperty
Identifies the DropDownWidth dependency property.
public static readonly DependencyProperty DropDownWidthProperty
EditModeProperty
DependencyProperty
Identifies the EditMode dependency property.
public static readonly DependencyProperty EditModeProperty
GenerateDefaultComponentsProperty
DependencyProperty
Identifies the GenerateDefaultComponents dependency property.
public static readonly DependencyProperty GenerateDefaultComponentsProperty
IsDropDownOpenProperty
DependencyProperty
Identifies the IsDropDownOpen dependency property.
public static readonly DependencyProperty IsDropDownOpenProperty
MaxDropDownHeightProperty
DependencyProperty
Identifies the MaxDropDownHeight dependency property.
public static readonly DependencyProperty MaxDropDownHeightProperty
SpinModeProperty
DependencyProperty
Identifies the SpinMode dependency property.
public static readonly DependencyProperty SpinModeProperty
StringFormatProperty
DependencyProperty
Identifies the StringFormat dependency property.
public static readonly DependencyProperty StringFormatProperty
TabNavigationModeProperty
DependencyProperty
Identifies the TabNavigationMode dependency property.
public static readonly DependencyProperty TabNavigationModeProperty
TextAlignmentProperty
DependencyProperty
Identifies the TextAlignment dependency property.
public static readonly DependencyProperty TextAlignmentProperty
TimeSpanComponentsProperty
DependencyProperty
Identifies the TimeSpanComponents read-only dependency property.
public static readonly DependencyProperty TimeSpanComponentsProperty
TimeSpanComponentStyleProperty
DependencyProperty
Identifies the TimeSpanComponentStyle dependency property.
public static readonly DependencyProperty TimeSpanComponentStyleProperty
TimeSpanComponentStyleSelectorProperty
DependencyProperty
Identifies the TimeSpanComponentStyleSelector dependency property.
public static readonly DependencyProperty TimeSpanComponentStyleSelectorProperty
TimeSpanTextProperty
DependencyProperty
Identifies the TimeSpanText dependency property.
public static readonly DependencyProperty TimeSpanTextProperty
TimeSpanWatermarkContentProperty
DependencyProperty
Identifies the TimeSpanWatermarkContent dependency property.
public static readonly DependencyProperty TimeSpanWatermarkContentProperty
TimeSpanWatermarkTemplateProperty
DependencyProperty
Identifies the TimeSpanWatermarkTemplate dependency property.
public static readonly DependencyProperty TimeSpanWatermarkTemplateProperty
ValueProperty
DependencyProperty
Identifies the Value dependency property.
public static readonly DependencyProperty ValueProperty
Properties
Gets or sets the width for a RadTimeSpanPicker DropDown.
public double DropDownWidth { get; set; }
Gets or sets a value indicating the edit mode of the TimeSpanPicker control.
public EditMode EditMode { get; set; }
Gets or sets a value that indicates whether the control will use the default - Day, Hour and Minute RadTimeSpanPickerComponents.
public bool GenerateDefaultComponents { get; set; }
Gets or sets a value that indicates whether the DropDown button is open or closed.
public bool IsDropDownOpen { get; set; }
True if this DropDown button is open; otherwise, false.
Gets or sets the maximum height for a RadTimeSpanPicker DropDown.
public double MaxDropDownHeight { get; set; }
Gets or sets a value indicating the spin mode of the TimeSpanPicker control.
public SpinMode SpinMode { get; set; }
Gets or sets a string that represents a valid format that can be used to format the string representation of any TimeSpan value.
public string StringFormat { get; set; }
Gets or sets a value indicating the tab navigation mode of the TimeSpanPicker control.
public TabNavigationMode TabNavigationMode { get; set; }
TextAlignment
TextAlignment
Gets or sets the TextAlignment of the TextBox inside the RadTimeSpanPicker.
public TextAlignment TextAlignment { get; set; }
The TextAlignment of the TextBox.
Gets the TimeSpanComponentCollection that is currently used in the RadTimeSpanPicker.
public TimeSpanComponentCollection TimeSpanComponents { get; }
Gets or sets the style for the RadTimeSpanPickerComponents of the RadTimeSpanPicker.
public Style TimeSpanComponentStyle { get; set; }
TimeSpanComponentStyleSelector
StyleSelector
Gets or sets the style selector for the RadTimeSpanPickerComponents of the RadTimeSpanPicker.
public StyleSelector TimeSpanComponentStyleSelector { get; set; }
Gets the formatted string representing the Value.
public string TimeSpanText { get; }
Gets or sets the content of the RadTimeSpanPicker control when there is no entered text.
public object TimeSpanWatermarkContent { get; set; }
TimeSpanWatermarkTemplate
DataTemplate
Gets or sets the System.Windows.DataTemplate used to display TimeSpanWatermark when there is no selection.
public DataTemplate TimeSpanWatermarkTemplate { get; set; }
Methods
Occurs when cut operation is executed.
protected virtual void OnApplicationCut(object sender, ExecutedRoutedEventArgs e)
Occurs when paste operation is performed.
protected virtual void OnApplicationPaste(object sender, ExecutedRoutedEventArgs e)
When overridden in a derived class, is invoked whenever application code or internal processes call .
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Create the TimeSpanPicker Automation Peer.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
Invoked whenever an unhandled System.Windows.UIElement.GotFocus event reaches this element in its route.
protected override void OnGotFocus(RoutedEventArgs e)
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.
Invoked when an unhandled System.Windows.Input.Keyboard.KeyUp 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 OnKeyUp(KeyEventArgs e)
protected override void OnMouseWheel(MouseWheelEventArgs e)
Occurs when the Value property is being changed after editing operation.
protected virtual bool OnValueEditing(TimeSpan? newValue, EditSection section, decimal? oldSectionValue, char? digitChar = null, bool isDelete = false, SpinAction spinAction = SpinAction.None)
The new value to be set.
sectionEditSectionThe section that is edited.
oldSectionValuedecimal?The value of the section before edit.
digitCharchar?The char to be inserted in the section.
isDeleteboolThe char to be inserted in the section.
spinActionSpinActionIndicates the spin action type.
Returns:Resets the theme.
public void ResetTheme()
Events
DropDownClosed
RoutedEventHandler
Occurs when the DropDownButton is closed.
public event RoutedEventHandler DropDownClosed
DropDownOpened
RoutedEventHandler
Occurs when the DropDownButton is opened.
public event RoutedEventHandler DropDownOpened
Occurs when the Value property is changed.
public event EventHandler<ValueChangedEventArgs> ValueChanged
Occurs when the Value property is about to change on edit operation via textbox or dropdown popup.
public event EventHandler<ValueEditingEventArgs> ValueEditing