Class TimeSpanEdit
Inheritance
System.Object
TimeSpanEdit
Implements
System.IDisposable
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
[SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(TimeSpanEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/TimeSpanEdit/Themes/Office2007BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(TimeSpanEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/TimeSpanEdit/Themes/Office2010BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(TimeSpanEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/TimeSpanEdit/Themes/Office2010SilverStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(TimeSpanEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/TimeSpanEdit/Themes/TransparentStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(TimeSpanEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/TimeSpanEdit/Themes/BlendStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(TimeSpanEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/TimeSpanEdit/Themes/MetroStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(TimeSpanEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/TimeSpanEdit/Themes/VS2010Style.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(TimeSpanEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/TimeSpanEdit/Themes/Office2010BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Default, Type = typeof(TimeSpanEdit), XamlResource = "/Syncfusion.Shared.Wpf;component/Controls/TimeSpanEdit/Themes/generic.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(TimeSpanEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/TimeSpanEdit/Themes/Office2007BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(TimeSpanEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/TimeSpanEdit/Themes/Office2007SilverStyle.xaml")]
public class TimeSpanEdit : TextBox, IDisposable
Constructors
TimeSpanEdit()
Declaration
Fields
AllowNullProperty
Using a DependencyProperty as the backing store for AllowNull. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AllowNullProperty
Field Value
Type |
System.Windows.DependencyProperty |
Using a DependencyProperty as the backing store for EnableExtendedScrolling. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty EnableExtendedScrollingProperty
Field Value
Type |
System.Windows.DependencyProperty |
EnableTouchProperty
Using a DependencyProperty as the backing store for EnableTouch. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty EnableTouchProperty
Field Value
Type |
System.Windows.DependencyProperty |
Using a DependencyProperty as the backing store for Format. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty FormatProperty
Field Value
Type |
System.Windows.DependencyProperty |
Using a DependencyProperty as the backing store for IncrementOnScrolling. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty IncrementOnScrollingProperty
Field Value
Type |
System.Windows.DependencyProperty |
MaxValueProperty
Using a DependencyProperty as the backing store for MaxValue. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty MaxValueProperty
Field Value
Type |
System.Windows.DependencyProperty |
MinValueProperty
Using a DependencyProperty as the backing store for MinValue. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty MinValueProperty
Field Value
Type |
System.Windows.DependencyProperty |
NullStringProperty
Using a DependencyProperty as the backing store for NullString. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty NullStringProperty
Field Value
Type |
System.Windows.DependencyProperty |
Using a DependencyProperty as the backing store for ShowArrowButtons. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ShowArrowButtonsProperty
Field Value
Type |
System.Windows.DependencyProperty |
StepIntervalProperty
Using a DependencyProperty as the backing store for StepInterval. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty StepIntervalProperty
Field Value
Type |
System.Windows.DependencyProperty |
ValueProperty
Using a DependencyProperty as the backing store for Value. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type |
System.Windows.DependencyProperty |
Properties
AllowNull
Declaration
public bool AllowNull { get; set; }
Property Value
DownCommand
Declaration
public ICommand DownCommand { get; }
Property Value
Type |
System.Windows.Input.ICommand |
Get or Set EnableExtendedScrolling
Declaration
public bool EnableExtendedScrolling { get; set; }
Property Value
EnableTouch
Declaration
public bool EnableTouch { get; set; }
Property Value
Declaration
public string Format { get; set; }
Property Value
Declaration
public bool IncrementOnScrolling { get; set; }
Property Value
MaxValue
Declaration
public TimeSpan MaxValue { get; set; }
Property Value
MinValue
Declaration
public TimeSpan MinValue { get; set; }
Property Value
NullString
Declaration
public string NullString { get; set; }
Property Value
Declaration
public bool ShowArrowButtons { get; set; }
Property Value
StepInterval
Gets or sets the interval to increment or decrement the time span value of the control.
Declaration
public TimeSpan StepInterval { get; set; }
Property Value
Examples
//If value is 1.1:1:15, seconds will increase or decrease in 15 seconds interval. other fields will increase or decrease 1 minute, hour, day interval.
timespanedit.StepInterval= new TimeSpan(1,1,1,15);
UpCommand
Declaration
public ICommand UpCommand { get; }
Property Value
Type |
System.Windows.Input.ICommand |
Value
Declaration
public TimeSpan? Value { get; set; }
Property Value
Type |
System.Nullable<System.TimeSpan> |
Methods
Dispose()
Declaration
OnAllowNullChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Declaration
public static void OnAllowNullChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
sender |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call System.Windows.Controls.Control.ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
Declaration
public override void OnApplyTemplate()
Declaration
protected override void OnContextMenuOpening(ContextMenuEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Controls.ContextMenuEventArgs |
e |
|
OnCreateAutomationPeer()
Returns the AutomationPeer of CurrencyTextBox class.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type |
System.Windows.Automation.Peers.AutomationPeer |
Invoked on EnableExtendedScrolling get changed
Declaration
public static void OnEnableExtendedScrollingChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
obj |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
OnEnableTouchChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Invoked on EnableTouchChanged
Declaration
public static void OnEnableTouchChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
obj |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Declaration
public static void OnFormatStringChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
sender |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
OnGotFocus(RoutedEventArgs)
Declaration
protected override void OnGotFocus(RoutedEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.RoutedEventArgs |
e |
|
OnMaxValueChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Declaration
public static void OnMaxValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
sender |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
OnMinValueChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Declaration
public static void OnMinValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
sender |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Called before the System.Windows.UIElement.MouseWheel event occurs to provide handling for the event in a derived class without attaching a delegate.
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.MouseWheelEventArgs |
e |
A System.Windows.Input.MouseWheelEventArgs that contains the event data.
|
OnNullStringChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Declaration
public static void OnNullStringChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
sender |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.KeyEventArgs |
e |
|
Declaration
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Input.MouseButtonEventArgs |
e |
|
OnSelectionChanged(RoutedEventArgs)
Declaration
protected override void OnSelectionChanged(RoutedEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.RoutedEventArgs |
e |
|
OnValueChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Declaration
public static void OnValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters
Type |
Name |
Description |
System.Windows.DependencyObject |
sender |
|
System.Windows.DependencyPropertyChangedEventArgs |
args |
|
Events
ValueChanged
Event that is raised when Value property is changed.
Declaration
public event PropertyChangedCallback ValueChanged
Event Type
Type |
System.Windows.PropertyChangedCallback |
Implements
System.IDisposable