The C1TimeEditor control allows editing of TimeSpan values in different formats.
Allows editing TimeSpan values.

Namespace:  C1.Silverlight.DateTimeEditors
Assembly:  C1.Silverlight.DateTimeEditors (in C1.Silverlight.DateTimeEditors.dll)

Syntax

C#
[TemplateVisualStateAttribute(Name = "Valid", GroupName = "ValidationStatesStates")]
[TemplateVisualStateAttribute(Name = "InvalidUnfocused", GroupName = "ValidationStatesStates")]
[TemplateVisualStateAttribute(Name = "InvalidFocused", GroupName = "ValidationStatesStates")]
[StyleTypedPropertyAttribute(Property = "ValidationDecoratorStyle", StyleTargetType = typeof(C1ValidationDecorator))]
[TemplatePartAttribute(Name = "Increase", Type = typeof(RepeatButton))]
[TemplatePartAttribute(Name = "Decrease", Type = typeof(RepeatButton))]
[TemplateVisualStateAttribute(Name = "ShowButtons", GroupName = "ButtonsVisibilityStates")]
[TemplateVisualStateAttribute(Name = "HideButtons", GroupName = "ButtonsVisibilityStates")]
[TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "CommonStates")]
[TemplateVisualStateAttribute(Name = "Disabled", GroupName = "CommonStates")]
[TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")]
[TemplateVisualStateAttribute(Name = "Focused", GroupName = "FocusStates")]
[TemplateVisualStateAttribute(Name = "Unfocused", GroupName = "FocusStates")]
[TemplatePartAttribute(Name = "TextBox", Type = typeof(C1TextBoxBase))]
public class C1TimeEditor : Control
Visual Basic
<TemplateVisualStateAttribute(Name := "Valid", GroupName := "ValidationStatesStates")> _
<TemplateVisualStateAttribute(Name := "InvalidUnfocused", GroupName := "ValidationStatesStates")> _
<TemplateVisualStateAttribute(Name := "InvalidFocused", GroupName := "ValidationStatesStates")> _
<StyleTypedPropertyAttribute(Property := "ValidationDecoratorStyle", StyleTargetType := GetType(C1ValidationDecorator))> _
<TemplatePartAttribute(Name := "Increase", Type := GetType(RepeatButton))> _
<TemplatePartAttribute(Name := "Decrease", Type := GetType(RepeatButton))> _
<TemplateVisualStateAttribute(Name := "ShowButtons", GroupName := "ButtonsVisibilityStates")> _
<TemplateVisualStateAttribute(Name := "HideButtons", GroupName := "ButtonsVisibilityStates")> _
<TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "CommonStates")> _
<TemplateVisualStateAttribute(Name := "Disabled", GroupName := "CommonStates")> _
<TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _
<TemplateVisualStateAttribute(Name := "Focused", GroupName := "FocusStates")> _
<TemplateVisualStateAttribute(Name := "Unfocused", GroupName := "FocusStates")> _
<TemplatePartAttribute(Name := "TextBox", Type := GetType(C1TextBoxBase))> _
Public Class C1TimeEditor _
	Inherits Control

Inheritance Hierarchy

System..::..Object
  System.Windows..::..DependencyObject
    System.Windows..::..UIElement
      System.Windows..::..FrameworkElement
        System.Windows.Controls..::..Control
          C1.Silverlight.DateTimeEditors..::..C1TimeEditor

See Also