[]
Represents a GrapeCity.Windows.InputMan.Primitives.SpinButton control for spin operations.
public class SpinButton : RepeatButton, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource
Public Class SpinButton
Inherits RepeatButton
Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource
Generally, the GrapeCity.Windows.InputMan.FieldsEditingCommands.SpinUp command or GrapeCity.Windows.InputMan.FieldsEditingCommands.SpinDown command is set to the Command. It is added in the default template of GrapeCity.Windows.InputMan.GcDateTime, GrapeCity.Windows.InputMan.GcNumber and GrapeCity.Windows.InputMan.GcMask which natively support the GrapeCity.Windows.InputMan.FieldsEditingCommands.SpinUp command and GrapeCity.Windows.InputMan.FieldsEditingCommands.SpinDown command.
Supported VisualState list:
VisualStateGroup Name | VisualState Name | Description |
---|---|---|
CommonStates | Normal | Represents the visual appearance when control is in normal state. |
CommonStates | Disabled | |
CommonStates | Pressed | |
CommonStates | MouseOver | Represents the visual appearance when IsMouseOver is true. |
FocusStates | Focused | Represents the visual appearance when IsKeyboardFocused is true. |
FocusStates | Unfocused | Represents the visual appearance when IsKeyboardFocused is false. |
ValidationStates | Valid | Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns false. |
ValidationStates | InvalidFocused | Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and IsKeyboardFocused is true. |
ValidationStates | InvalidUnfocused | Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and IsKeyboardFocused is false. |
Name | Description |
---|---|
SpinButton() |
Name | Description |
---|---|
OnMouseDown(MouseButtonEventArgs) | Invoked when an unhandled System.Windows.Input.Mouse.MouseDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. |
OnMouseUp(MouseButtonEventArgs) |