[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.MaskEnumerationField

MaskEnumerationField Class

Represents GrapeCity.Windows.InputMan.Fields.MaskEnumerationField class which contains an enumeration for GrapeCity.Windows.InputMan.GcMask.

Inheritance
MaskEnumerationField
Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
[TemplatePart(Name = "PART_ContentRoot", Type = typeof(Grid))]
public sealed class MaskEnumerationField : MaskField, IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize, ISpinable, INotifyPropertyChanged, IDropDown
<TemplatePart(Name:="PART_ContentRoot", Type:=GetType(Grid))>
Public NotInheritable Class MaskEnumerationField
    Inherits MaskField
    Implements IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize, ISpinable, INotifyPropertyChanged, IDropDown
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

MouseOver

Represents the visual appearance when IsMouseOver is true.

ActiveStates

ActiveDropDown

Represents the visual appearance when IsActive and IsDropDownOpen is true.

ActiveStates

Active

Represents the visual appearance when IsActive is true.

ActiveStates

Inactive

Represents the visual appearance when IsActive is false.

InputStates

Full

Represents the visual appearance when IsFull is true.

InputStates

Completed

Represents the visual appearance when IsCompleted is true.

InputStates

Empty

Represents the visual appearance when IsEmpty is true.

InputStates

Part

Represents the visual appearance when IsFull, IsCompleted and IsEmpty all are 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 control has focus.

ValidationStates

InvalidUnfocused

Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and control has no focus.

Constructors

Name Description
MaskEnumerationField()

Initializes a new instance of the MaskEnumerationField class.

MaskEnumerationField(string[])

Initializes a new instance of the MaskEnumerationField class.

Fields

Name Description
AllowDropDownOpenProperty

Identifies the GrapeCity.Windows.InputMan.Fields.MaskEnumerationField.AllowDropDownOpen dependency property.

AutoConvertProperty

Identifies the GrapeCity.Windows.InputMan.Fields.MaskEnumerationField.AutoConvert dependency property.

AutoOpenDropDownProperty

Identifies the GrapeCity.Windows.InputMan.Fields.MaskEnumerationField.AutoOpenDropDown dependency property.

IsDropDownOpenProperty

Identifies the GrapeCity.Windows.InputMan.Fields.MaskEnumerationField.IsDropDownOpen dependency property.

ItemsProperty

Identifies the GrapeCity.Windows.InputMan.Fields.MaskEnumerationField.Items dependency property.

PromptCharProperty

Identifies the GrapeCity.Windows.InputMan.Fields.MaskEnumerationField.PromptChar dependency property.

SpinIncrementProperty

Identifies the GrapeCity.Windows.InputMan.Fields.MaskEnumerationField.SpinIncrement dependency property.

Properties

Name Description
AllowDropDownOpen

Gets or sets a bool value indicates whether the dropdown function is active. This is a dependency property.

AutoConvert

Gets or sets a value indicating whether try to convert the given value to items when they aren't match. This is a dependency property.

AutoOpenDropDown

Gets or sets a bool value which indicates whether auto drop down when current field is activated. This is a dependency property.

IsDropDownOpen

Gets or sets a bool value indicates whether the dropdown window is showing. This is a dependency property.

Items

Gets or sets the items of MaskEnumerationField. This is a dependency property.

PromptChar

Gets or sets the prompt char of the field. This is a dependency property.

SpinIncrement

Gets or sets the spin increment. This is a dependency property.

Methods

Name Description
Activate()

Attempts to activate current field and put caret to default caret position.

DoSpinDown()

Process the spin down behavior.

DoSpinDown(int)

Perform spin down with the specified increment.

DoSpinUp()

Process the spin up behavior.

DoSpinUp(int)

Perform spin up with the specified increment.

EndInit()

Indicates that the initialization process for the element is complete.

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().