Skip to main content
A newer version of this page is available. .

DataFormView Members

An edit form for a data object.

Constructors

Name Description
DataFormView() Initializes a new instance of the DataFormView class.

Fields

Name Description
AllowCollapseGroupsProperty static Identifies the AllowCollapseGroups bindable property.
CommitModeProperty static Identifies the CommitMode bindable property.
ContentPaddingProperty static Identifies the ContentPadding bindable property.
DataObjectProperty static Identifies the DataObject bindable property.
EditorBottomTextFontAttributesProperty static Identifies the EditorBottomTextFontAttributes bindable property.
EditorBottomTextFontFamilyProperty static Identifies the EditorBottomTextFontFamily bindable property.
EditorBottomTextFontSizeProperty static Identifies the EditorBottomTextFontSize bindable property.
EditorBoxModeProperty static Identifies the EditorBoxMode bindable property.
EditorErrorColorProperty static Identifies the EditorErrorColor bindable property.
EditorHelpTextColorProperty static Identifies the EditorHelpTextColor bindable property.
EditorHorizontalSpacingProperty static Identifies the EditorHorizontalSpacing bindable property.
EditorLabelColorProperty static Identifies the EditorLabelColor bindable property.
EditorLabelFontAttributesProperty static Identifies the EditorLabelFontAttributes bindable property.
EditorLabelFontFamilyProperty static Identifies the EditorLabelFontFamily bindable property.
EditorLabelFontSizeProperty static Identifies the EditorLabelFontSize bindable property.
EditorLabelHorizontalAlignmentProperty static Identifies the EditorLabelHorizontalAlignment bindable property.
EditorLabelIndentProperty static Identifies the EditorLabelIndent bindable property.
EditorLabelMaxWidthProperty static Identifies the EditorLabelMaxWidth bindable property.
EditorLabelMinWidthProperty static Identifies the EditorLabelMinWidth bindable property.
EditorLabelPositionProperty static Identifies the EditorLabelPosition bindable property.
EditorLabelWidthProperty static Identifies the EditorLabelWidth bindable property.
EditorMaxWidthProperty static Identifies the EditorMaxWidth bindable property.
EditorMinWidthProperty static Identifies the EditorMinWidth bindable property.
EditorPaddingProperty static Identifies the EditorPadding bindable property.
EditorWidthProperty static Identifies the EditorWidth bindable property.
GroupHeaderBackgroundColorProperty static Identifies the GroupHeaderBackgroundColor bindable property.
GroupHeaderFontAttributesProperty static Identifies the GroupHeaderFontAttributes bindable property.
GroupHeaderFontFamilyProperty static Identifies the GroupHeaderFontFamily bindable property.
GroupHeaderFontSizeProperty static Identifies the GroupHeaderFontSize bindable property.
GroupHeaderPaddingProperty static Identifies the GroupHeaderPadding bindable property.
GroupHeaderTextColorProperty static Identifies the GroupHeaderTextColor bindable property.
IgnoreDataAnnotationValidationProperty static Identifies the IgnoreDataAnnotationValidation bindable property.
IsAutoGenerationEnabledProperty static Identifies the IsAutoGenerationEnabled bindable property.
IsEditorLabelVisibleProperty static Identifies the IsEditorLabelVisible bindable property.
IsGroupHeaderVisibleProperty static Identifies the IsGroupHeaderVisible bindable property.
IsLastRowSeparatorVisibleProperty static Identifies the IsLastRowSeparatorVisible bindable property.
IsReadOnlyProperty static Identifies the IsReadOnly bindable property.
PickerSourceProviderProperty static Identifies the PickerSourceProvider bindable property.
ReserveBottomTextLineProperty static Identifies the ReserveBottomTextLine bindable property.
RowSeparatorColorProperty static Identifies the RowSeparatorColor bindable property.
RowSeparatorThicknessProperty static Identifies the RowSeparatorThickness bindable property.
ValidationModeProperty static Identifies the ValidationMode bindable property.

Properties

Name Description
ActualAppearance Gets the common appearance settings that are applied to the current DataFormView.
AllowCollapseGroups Gets or sets whether users can collapse and expand groups of editors. This is a bindable property.
CommitMode Gets or sets when to commit values that users enter in the data form’s editors to the bound data object. This is a bindable property.
ContentPadding Gets or sets the distance between editors and the data form’s borders or group headers.This is a bindable property.
DataObject Gets or sets a data object edited via the data form. This is a bindable property.
EditorBottomTextFontAttributes Gets or sets whether an editor’s help and error text is bold or italic. This is a bindable property.
EditorBottomTextFontFamily Gets or sets the font family name for an editor’s help and error text. This is a bindable property.
EditorBottomTextFontSize Gets or sets the font size of an editor’s help and error text. This is a bindable property.
EditorBoxMode Gets or sets whether the data form’s editors are outlined with borders or the border is displayed only for editors’ bottom edges. This is a bindable property.
EditorErrorColor Gets or sets the color of editor borders, in-place labels, error icons, and error messages if there are input errors. This is a bindable property.
EditorHelpTextColor Gets or sets the color of help text displayed below editors. This is a bindable property.
EditorHorizontalSpacing Gets or sets the distance between editors in a row. This is a bindable property.
EditorLabelColor Gets or sets the color of editor labels (text or icons). This is a bindable property.
EditorLabelFontAttributes Gets or sets the font style for editor text labels. This is a bindable property.
EditorLabelFontFamily Gets or sets the font family name for editor text labels. This is a bindable property.
EditorLabelFontSize Gets or sets the font size for editor text labels. This is a bindable property.
EditorLabelHorizontalAlignment Gets or sets the horizontal alignment of labels displayed above editors. This is a bindable property.
EditorLabelIndent Gets or sets the distance between editors and their labels. This is a bindable property.
EditorLabelMaxWidth Gets or sets the maximum width of the data form’s editor labels. This is a bindable property.
EditorLabelMinWidth Gets or sets the minimum width of the data form’s editor labels. This is a bindable property.
EditorLabelPosition Gets or sets the position of labels relative to editors. This is a bindable property.
EditorLabelWidth Gets or sets the width of the data form’s editor labels. This is a bindable property.
EditorMaxWidth Gets or sets the maximum width of the data form’s editors. This is a bindable property.
EditorMinWidth Gets or sets the minimum width of the data form’s editors. This is a bindable property.
EditorPadding Gets or sets the distance between edges of the data form’s items and their content (editors and labels). This is a bindable property.
EditorWidth Gets or sets the width of the data form’s editors. This is a bindable property.
GroupHeaderBackgroundColor Gets or sets the background color for headers of editor groups. This is a bindable property.
GroupHeaderFontAttributes Gets or sets the font style for header captions of editor groups. This is a bindable property.
GroupHeaderFontFamily Gets or sets the font family name for header captions of editor groups. This is a bindable property.
GroupHeaderFontSize Gets or sets the font size for header captions of editor groups. This is a bindable property.
GroupHeaderPadding Gets or sets the distance between the edges of the data form’s group headers and their content. This is a bindable property.
GroupHeaderTextColor Gets or sets the text color for header captions of editor groups. This is a bindable property.
Groups Gets the collection of the DataFormView groups.
IgnoreDataAnnotationValidation
IsAutoGenerationEnabled
IsEditorLabelVisible Gets or sets whether the data form displays editor labels. This is a bindable property.
IsGroupHeaderVisible Gets or sets whether the data form displays headers for groups of editors. This is a bindable property.
IsLastRowSeparatorVisible Gets or sets whether a row separator line is displayed below the bottom row of editors on the data form. This is a bindable property.
IsReadOnly Gets or sets whether the DataFormView is read-only. This is a bindable property.
Items Gets the collection of the data form’s editors.
PickerSourceProvider Gets or sets the data source used to generate drop-down list items of combo box editors. This is a bindable property.
ReserveBottomTextLine Gets or sets whether a line for help and error text below each editor is reserved. This is a bindable property.
RowSeparatorColor Gets or sets the color of lines that separate rows of editors on the data form. This is a bindable property.
RowSeparatorThickness Gets or sets the thickness of lines that separate rows of editors on the data form. This is a bindable property.
ValidationMode Gets or sets when to validate values that users enter in the data form’s editors. This is a bindable property.

Methods

Name Description
Commit() Commits values in data editors on the form to the underlying data object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
GetValue(String) Returns the current value of a Data Form editor by the name of the property to which the editor is bound.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
RegisterGroup(DataFormGroup)
ToString() Returns a string that represents the current object. Inherited from Object.
Validate() Validates all data fields on the form according to the current validation logic.
Validate(String) Validates the specified data field according to the current validation logic.

Events

Name Description
GeneratePropertyItem
ValidateForm Allows you to validate all data editors on the form.
ValidateProperty Allows you to validate a specific data editor on the form.
See Also