[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.DropDownButton

DropDownButton Class

Represents a GrapeCity.Windows.InputMan.Primitives.DropDownButton handling mouse click to open the drop down window of the edit controls.

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

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.

CheckStates

Checked

Represents the visual appearance when IsChecked is true.

CheckStates

Unchecked

Represents the visual appearance when IsChecked is false.

CheckStates

Indeterminate

Represents the visual appearance when IsChecked is null.

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
DropDownButton()

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)
OnToggle()

Called by the OnClick() method to implement toggle behavior.