[]
Represents the basic input and display unit in GrapeCity.Windows.InputMan.Primitives.FieldsEditorControl.
[TemplatePart(Name = "PART_ContentHost", Type = typeof(FieldContentPresenter))]
public abstract class Field : Control, IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize
<TemplatePart(Name:="PART_ContentHost", Type:=GetType(FieldContentPresenter))>
Public MustInherit Class Field
Inherits Control
Implements IAnimatable, IFrameworkInputElement, IInputElement, IQueryAmbient, ISupportInitialize
This class will implement the view function for a single segment. And some input behavior will exposed to user, too. This is final interface for user. When a field is created, it will create a segment and value module for it. Then configuration will be done on the segment and the value module.
Name | Description |
---|---|
Field() |
Name | Description |
---|---|
EnterEvent | Identifies the GrapeCity.Windows.InputMan.Fields.Primitives.Field.Enter routed event. |
IsActiveProperty | Identifies the GrapeCity.Windows.InputMan.Fields.Primitives.Field.IsActive dependency property. |
IsCompletedProperty | Identifies the GrapeCity.Windows.InputMan.Fields.Primitives.Field.IsCompleted dependency property. |
IsEmptyProperty | Identifies the GrapeCity.Windows.InputMan.Fields.Primitives.Field.IsEmpty dependency property. |
IsFullProperty | Identifies the GrapeCity.Windows.InputMan.Fields.Primitives.Field.IsFull dependency property. |
LeaveEvent | Identifies the Leave routed event. |
Name | Description |
---|---|
IsActive | Gets whether the field is activated or not. This is a dependency property. |
IsCompleted | Gets whether the field have been input completely. This is a dependency property. |
IsEmpty | Gets whether the field haven't been input anything, the field is empty. This is a dependency property. |
IsFull | Gets whether the field have been input fully. This is a dependency property. |
SelectionLength | Gets a value indicating the number of characters in the current selection. |
SelectionStart | Gets a character index for the beginning of the current selection. |
Text | Gets current text content of the field. |
Name | Description |
---|---|
BeginInit() | Starts the initialization process for this element. |
EndInit() | Indicates that the initialization process for the element is complete. |
Focus() | Attempts to set focus to this element. |
OnApplyTemplate() | When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate(). |
OnEnter(RoutedEventArgs) | Called when the caret enter to this field. |
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs) | Invoked when an unhandled System.Windows.Input.Keyboard.GotKeyboardFocus attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event. |
OnInitialized(EventArgs) | Raises the Initialized event. |
OnLeave(RoutedEventArgs) | Called when the care leave from this field. |
OnPropertyChanged(DependencyPropertyChangedEventArgs) | Invoked when any dependency property changed and it must cause renderscope measure or render some time. |
OnTemplateChanged(ControlTemplate, ControlTemplate) | Called whenever the control's template changes. |
Name | Description |
---|---|
Enter | Occurs when the input focus enters the Field. |
Leave | Occurs when the input focus leaves the Field. |