Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / SpinButton Class
Members


In This Topic
    SpinButton Class
    In This Topic
    Represents a GrapeCity.Windows.InputMan.Primitives.SpinButton control for spin operations.
    Object Model
    SpinButton Class
    Syntax
    'Declaration
     
    <DesignTimeVisibleAttribute(False)>
    <DefaultEventAttribute("Click")>
    <LocalizabilityAttribute(LocalizationCategory.Button)>
    <DefaultPropertyAttribute("Content")>
    <ContentPropertyAttribute("Content")>
    <StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class SpinButton 
       Inherits System.Windows.Controls.Primitives.RepeatButton
    'Usage
     
    Dim instance As SpinButton
    [DesignTimeVisible(false)]
    [DefaultEvent("Click")]
    [Localizability(LocalizationCategory.Button)]
    [DefaultProperty("Content")]
    [ContentProperty("Content")]
    [StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class SpinButton : System.Windows.Controls.Primitives.RepeatButton 
    Remarks
    Generally, the GrapeCity.Windows.InputMan.FieldsEditingCommands.SpinUp command or GrapeCity.Windows.InputMan.FieldsEditingCommands.SpinDown command is set to the System.Windows.Controls.Primitives.ButtonBase.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 System.Windows.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 System.Windows.UIElement.IsEnabled is false.

    CommonStates

    Pressed

    Represents the visual appearance when System.Windows.Controls.Primitives.ButtonBase.IsPressed is true.

    CommonStates

    MouseOver

    Represents the visual appearance when System.Windows.UIElement.IsMouseOver is true.

    FocusStates

    Focused

    Represents the visual appearance when System.Windows.UIElement.IsKeyboardFocused is true.

    FocusStates

    Unfocused

    Represents the visual appearance when System.Windows.UIElement.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 System.Windows.UIElement.IsKeyboardFocused is true.

    ValidationStates

    InvalidUnfocused

    Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and System.Windows.UIElement.IsKeyboardFocused is false.

    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             System.Windows.Media.Visual
                System.Windows.UIElement
                   System.Windows.FrameworkElement
                      System.Windows.Controls.Control
                         System.Windows.Controls.ContentControl
                            System.Windows.Controls.Primitives.ButtonBase
                               System.Windows.Controls.Primitives.RepeatButton
                                  GrapeCity.Wpf.SpreadSheet.CellType.Editors.SpinButton

    See Also