[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.SpinButton

SpinButton Class

Represents a GrapeCity.Windows.InputMan.Primitives.SpinButton control for spin operations.

Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
public class SpinButton : RepeatButton, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource
Public Class SpinButton
    Inherits RepeatButton
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource
Remarks

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

Represents the visual appearance when IsEnabled is false.

CommonStates

Pressed

Represents the visual appearance when IsPressed is true.

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.

Constructors

Name Description
SpinButton()

Methods

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)