ClassDataFormEditor
Base abstract class for all editors in a RadDataForm.
Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
public abstract class DataFormEditor : DataFormItem, IRadContentView, IContentView, IPadding, ICrossPlatformLayout, IView, IElement, ITransform
Inheritance: objectRadContentViewDataFormContentViewDataFormItemDataFormEditor
Derived Classes:
Implements:
Inherited Members
Constructors
DataFormEditor()
Initializes a new instance of the DataFormEditor class.
Declaration
public DataFormEditor()
Fields
ActualEditorStyleProperty
Identifies the ActualEditorStyle property.
Declaration
public static readonly BindableProperty ActualEditorStyleProperty
Field Value
BindableProperty
ActualErrorDisplayOptionsProperty
Identifies the ActualErrorDisplayOptions property.
Declaration
public static readonly BindableProperty ActualErrorDisplayOptionsProperty
Field Value
BindableProperty
ActualErrorImageSourceProperty
Identifies the ActualErrorImageSource property.
Declaration
public static readonly BindableProperty ActualErrorImageSourceProperty
Field Value
BindableProperty
ActualErrorImageStyleProperty
Identifies the ActualErrorImageStyle property.
Declaration
public static readonly BindableProperty ActualErrorImageStyleProperty
Field Value
BindableProperty
ActualErrorLabelStyleProperty
Identifies the ActualErrorLabelStyle property.
Declaration
public static readonly BindableProperty ActualErrorLabelStyleProperty
Field Value
BindableProperty
ActualErrorLengthProperty
Identifies the ActualErrorLength property.
Declaration
public static readonly BindableProperty ActualErrorLengthProperty
Field Value
BindableProperty
ActualErrorPositionProperty
Identifies the ActualErrorPosition property.
Declaration
public static readonly BindableProperty ActualErrorPositionProperty
Field Value
BindableProperty
ActualHeaderDisplayOptionsProperty
Identifies the ActualHeaderDisplayOptions property.
Declaration
public static readonly BindableProperty ActualHeaderDisplayOptionsProperty
Field Value
BindableProperty
ActualHeaderImageSourceProperty
Identifies the ActualHeaderImageSource property.
Declaration
public static readonly BindableProperty ActualHeaderImageSourceProperty
Field Value
BindableProperty
ActualHeaderImageStyleProperty
Identifies the ActualHeaderImageStyle property.
Declaration
public static readonly BindableProperty ActualHeaderImageStyleProperty
Field Value
BindableProperty
ActualHeaderLabelStyleProperty
Identifies the ActualHeaderLabelStyle property.
Declaration
public static readonly BindableProperty ActualHeaderLabelStyleProperty
Field Value
BindableProperty
ActualHeaderLengthProperty
Identifies the ActualHeaderLength property.
Declaration
public static readonly BindableProperty ActualHeaderLengthProperty
Field Value
BindableProperty
ActualHeaderPositionProperty
Identifies the ActualHeaderPosition property.
Declaration
public static readonly BindableProperty ActualHeaderPositionProperty
Field Value
BindableProperty
ColumnSpacingProperty
Identifies the ColumnSpacing property.
Declaration
public static readonly BindableProperty ColumnSpacingProperty
Field Value
BindableProperty
CommitModeProperty
Identifies the CommitMode property.
Declaration
public static readonly BindableProperty CommitModeProperty
Field Value
BindableProperty
ConverterParameterProperty
Identifies the ConverterParameter property.
Declaration
public static readonly BindableProperty ConverterParameterProperty
Field Value
BindableProperty
ConverterProperty
Identifies the Converter property.
Declaration
public static readonly BindableProperty ConverterProperty
Field Value
BindableProperty
EditorStyleProperty
Identifies the EditorStyle property.
Declaration
public static readonly BindableProperty EditorStyleProperty
Field Value
BindableProperty
EditorValueProperty
Identifies the EditorValue property.
Declaration
public static readonly BindableProperty EditorValueProperty
Field Value
BindableProperty
ErrorDisplayOptionsProperty
Identifies the ErrorDisplayOptions property.
Declaration
public static readonly BindableProperty ErrorDisplayOptionsProperty
Field Value
BindableProperty
ErrorImageSourceProperty
Identifies the ErrorImageSource property.
Declaration
public static readonly BindableProperty ErrorImageSourceProperty
Field Value
BindableProperty
ErrorImageStyleProperty
Identifies the ErrorImageStyle property.
Declaration
public static readonly BindableProperty ErrorImageStyleProperty
Field Value
BindableProperty
ErrorLabelStyleProperty
Identifies the ErrorLabelStyle property.
Declaration
public static readonly BindableProperty ErrorLabelStyleProperty
Field Value
BindableProperty
ErrorLengthProperty
Identifies the ErrorLength property.
Declaration
public static readonly BindableProperty ErrorLengthProperty
Field Value
BindableProperty
ErrorPositionProperty
Identifies the ErrorPosition property.
Declaration
public static readonly BindableProperty ErrorPositionProperty
Field Value
BindableProperty
HasPendingChangesProperty
Identifies the HasPendingChanges property.
Declaration
public static readonly BindableProperty HasPendingChangesProperty
Field Value
BindableProperty
HasValidationErrorsProperty
Identifies the HasValidationErrors property.
Declaration
public static readonly BindableProperty HasValidationErrorsProperty
Field Value
BindableProperty
HeaderDisplayOptionsProperty
Identifies the HeaderDisplayOptions property.
Declaration
public static readonly BindableProperty HeaderDisplayOptionsProperty
Field Value
BindableProperty
HeaderImageSourceProperty
Identifies the HeaderImageSource property.
Declaration
public static readonly BindableProperty HeaderImageSourceProperty
Field Value
BindableProperty
HeaderImageStyleProperty
Identifies the HeaderImageStyle property.
Declaration
public static readonly BindableProperty HeaderImageStyleProperty
Field Value
BindableProperty
HeaderLabelStyleProperty
Identifies the HeaderLabelStyle property.
Declaration
public static readonly BindableProperty HeaderLabelStyleProperty
Field Value
BindableProperty
HeaderLengthProperty
Identifies the HeaderLength property.
Declaration
public static readonly BindableProperty HeaderLengthProperty
Field Value
BindableProperty
HeaderPositionProperty
Identifies the HeaderPosition property.
Declaration
public static readonly BindableProperty HeaderPositionProperty
Field Value
BindableProperty
HeaderTextProperty
Identifies the HeaderText property.
Declaration
public static readonly BindableProperty HeaderTextProperty
Field Value
BindableProperty
IsErrorImageVisibleProperty
Identifies the IsErrorImageVisible property.
Declaration
public static readonly BindableProperty IsErrorImageVisibleProperty
Field Value
BindableProperty
IsErrorLabelVisibleProperty
Identifies the IsErrorLabelVisible property.
Declaration
public static readonly BindableProperty IsErrorLabelVisibleProperty
Field Value
BindableProperty
IsHeaderImageVisibleProperty
Identifies the IsHeaderImageVisible property.
Declaration
public static readonly BindableProperty IsHeaderImageVisibleProperty
Field Value
BindableProperty
IsHeaderLabelVisibleProperty
Identifies the IsHeaderLabelVisible property.
Declaration
public static readonly BindableProperty IsHeaderLabelVisibleProperty
Field Value
BindableProperty
IsReadOnlyProperty
Identifies the IsReadOnly property.
Declaration
public static readonly BindableProperty IsReadOnlyProperty
Field Value
BindableProperty
PropertyNameProperty
Identifies the PropertyName property.
Declaration
public static readonly BindableProperty PropertyNameProperty
Field Value
BindableProperty
PropertyValueProperty
Identifies the PropertyValue property.
Declaration
public static readonly BindableProperty PropertyValueProperty
Field Value
BindableProperty
RowSpacingProperty
Identifies the RowSpacing property.
Declaration
public static readonly BindableProperty RowSpacingProperty
Field Value
BindableProperty
ValidationModeProperty
Identifies the ValidationMode property.
Declaration
public static readonly BindableProperty ValidationModeProperty
Field Value
BindableProperty
Properties
ActualEditorStyle
Gets the result from merging the Style specified in the EditorStyle property and the default base Style for that property.
Declaration
public Style ActualEditorStyle { get; }
Property Value
Style
ActualErrorDisplayOptions
Gets the actual value specified with the ErrorDisplayOptions property or inherided from the ErrorDisplayOptions property of the RadDataForm.
Declaration
public DataFormErrorDisplayOptions ActualErrorDisplayOptions { get; }
Property Value
ActualErrorImageSource
Gets the actual value specified with the ErrorImageSource property or inherided from the ErrorImageSource property of the RadDataForm.
Declaration
public ImageSource ActualErrorImageSource { get; }
Property Value
ImageSource
ActualErrorImageStyle
Gets the result from merging the Style specified in the ErrorImageStyle property and the default base Style for that property.
Declaration
public Style ActualErrorImageStyle { get; }
Property Value
Style
ActualErrorLabelStyle
Gets the result from merging the Style specified in the ErrorLabelStyle property and the default base Style for that property.
Declaration
public Style ActualErrorLabelStyle { get; }
Property Value
Style
ActualErrorLength
Gets the actual value specified with the ErrorLength property or inherided from the ErrorLength property of the RadDataForm.
Declaration
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ActualErrorLength { get; }
Property Value
GridLength
ActualErrorPosition
Gets the actual value specified with the ErrorPosition property or inherided from the ErrorPosition property of the RadDataForm.
Declaration
public DataFormErrorPosition ActualErrorPosition { get; }
Property Value
ActualHeaderDisplayOptions
Gets the actual value specified with the HeaderDisplayOptions property or inherided from the HeaderDisplayOptions property of the RadDataForm.
Declaration
public DataFormHeaderDisplayOptions ActualHeaderDisplayOptions { get; }
Property Value
ActualHeaderImageSource
Gets the actual value specified with the HeaderImageSource property or inherided from the HeaderImageSource property of the RadDataForm.
Declaration
public ImageSource ActualHeaderImageSource { get; }
Property Value
ImageSource
ActualHeaderImageStyle
Gets the result from merging the Style specified in the HeaderImageStyle property and the default base Style for that property.
Declaration
public Style ActualHeaderImageStyle { get; }
Property Value
Style
ActualHeaderLabelStyle
Gets the result from merging the Style specified in the HeaderLabelStyle property and the default base Style for that property.
Declaration
public Style ActualHeaderLabelStyle { get; }
Property Value
Style
ActualHeaderLength
Gets the actual value specified with the HeaderLength property or inherided from the HeaderLength property of the RadDataForm.
Declaration
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ActualHeaderLength { get; }
Property Value
GridLength
ActualHeaderPosition
Gets the actual value specified with the HeaderPosition property or inherided from the HeaderPosition property of the RadDataForm.
Declaration
public DataFormHeaderPosition ActualHeaderPosition { get; }
Property Value
ColumnSpacing
Gets or sets the horizontal spacing between the columns in the DataFormEditor.
CommitMode
Gets or sets the current commit mode of the DataFormEditor. For more information see the DataFormCommitMode type.
Declaration
public DataFormCommitMode CommitMode { get; set; }
Property Value
Converter
Gets or sets a IValueConverter to use when performing conversions between the value from the business object and the current editor.
Declaration
public IValueConverter Converter { get; set; }
Property Value
IValueConverter
ConverterParameter
Gets or sets a custom parameter to pass to the IValueConverter when performing conversions between the value from the business object and the current editor.
EditorStyle
Gets or sets the Style applied to the editor control. The target type of this Style depends on the actual editor control being used. For more information see the descendants of the DataFormEditor class.
Declaration
public Style EditorStyle { get; set; }
Property Value
Style
EditorValue
Gets or sets the current edited value, before applying it to the business object.
ErrorDisplayOptions
Gets or sets display options of the error indicator in the DataFormEditor. For more information see the DataFormErrorDisplayOptions type.
Declaration
public DataFormErrorDisplayOptions? ErrorDisplayOptions { get; set; }
Property Value
ErrorImageSource
Gets or sets the ImageSource of the error icon.
Declaration
public ImageSource ErrorImageSource { get; set; }
Property Value
ImageSource
ErrorImageStyle
Gets or sets the Style applied to the error icon. The target type of this Style is .
Declaration
public Style ErrorImageStyle { get; set; }
Property Value
Style
ErrorLabelStyle
Gets or sets the Style applied to the error label. The target type of this Style is .
Declaration
public Style ErrorLabelStyle { get; set; }
Property Value
Style
ErrorLength
Gets or sets the length of the error indicator in the editor. This property has an effect only when the ErrorPosition property is set to Beside. You can specify absolute values in pixels or weighted values followed by the asterisk symbol "". For instance, the value of "0.1" specifies that the error length should be 10% from the length of the corresponding editor. The special value "Auto" specifies that the error length should be computed automatically for each error indicator, based on the actual error size requirements.
Declaration
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ErrorLength { get; set; }
Property Value
GridLength
ErrorPosition
Gets or sets a value specifying the relative position of the error indicator in the DataFormEditor. For more information see the DataFormErrorPosition type.
Declaration
public DataFormErrorPosition? ErrorPosition { get; set; }
Property Value
HasPendingChanges
Gets a value indicating whether there are pending changes.
HasValidationErrors
Gets a value indicating whether there are validation errors.
HeaderDisplayOptions
Gets or sets the display options of the header in the DataFormEditor. For more information see the DataFormHeaderDisplayOptions type.
Declaration
public DataFormHeaderDisplayOptions? HeaderDisplayOptions { get; set; }
Property Value
HeaderImageSource
Gets or sets the ImageSource of the header icon.
Declaration
public ImageSource HeaderImageSource { get; set; }
Property Value
ImageSource
HeaderImageStyle
Gets or sets the Style applied to the header icon. The target type of this Style is .
Declaration
public Style HeaderImageStyle { get; set; }
Property Value
Style
HeaderLabelStyle
Gets or sets the Style applied to the header label in the DataFormEditor. The target type of this Style is .
Declaration
public Style HeaderLabelStyle { get; set; }
Property Value
Style
HeaderLength
Gets or sets the length of the header view in the editor. This property has an effect only when the HeaderPosition property is set to Beside. You can specify absolute values in pixels or weighted values followed by the asterisk symbol "". For instance, the value of "0.5" specifies that the header length should be 50% from the length of the corresponding editor. The special value "Auto" specifies that the header length should be computed automatically for the header view, based on the actual header size requirements.
Declaration
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength HeaderLength { get; set; }
Property Value
GridLength
HeaderPosition
Gets or sets a value specifying the relative position of the header label in the DataFormEditor. For more information see the DataFormHeaderPosition type.
Declaration
public DataFormHeaderPosition? HeaderPosition { get; set; }
Property Value
HeaderText
Gets or sets the text of the header label in the DataFormEditor.
IsErrorImageVisible
Gets a value indicating whether the error icon is currently visible in the DataFormEditor.
IsErrorLabelVisible
Gets a value indicating whether the error label is currently visible in the DataFormEditor.
IsHeaderImageVisible
Gets a value indicating whether the header icon is currently visible in the DataFormEditor.
IsHeaderLabelVisible
Gets a value indicating whether the header label is currently visible in the DataFormEditor.
IsReadOnly
Gets or sets a value indicating whether the current editor is in a read-only mode.
PropertyName
Gets or sets the name of the property from the business object this editor is bound to.
PropertyValue
Gets or sets the value of the property from the business object this editor is bound to.
RowSpacing
Gets or sets the vertical spacing between the rows in the DataFormEditor.
ValidationErrors
Gets a collection of validation errors that are produced after the last execution of the validation logic associated with the current DataFormEditor. This collection aggregates all validation errors produced by the validation rules from the property metadata of the underlying business object data model and all custom validation rules specified to the editor. For more information see the DataFormEditorValidationError type.
Declaration
public IReadOnlyList<DataFormEditorValidationError> ValidationErrors { get; }
Property Value
ValidationMode
Gets or sets the current validation mode of the DataFormEditor. For more information see the DataFormValidationMode type.
Declaration
public DataFormValidationMode ValidationMode { get; set; }
Property Value
ValidationRules
Gets a collection of validation rules associated with the current DataFormEditor. The validation rules specified here extend the base set of validation rules that come from the metadata of the underlying business object data model. When the validation logic is triggered, these validation rules are executed last, after executing the validation rules for the corresponding property. This makes it possible to execute more advanced validation logic beside what is specified with metadata and provide more detailed validation errors. For more information see the inheritors of the DataFormEditorValidationRule type.
Declaration
public IList<DataFormEditorValidationRule> ValidationRules { get; }
Property Value
Methods
CancelChanges()
Cancels all pending changes in the DataFormEditor and reverts to the original property value from the underlying business object. This method is mostly useful when the CommitMode property is set to Explicit.
Declaration
public void CancelChanges()
CommitChanges()
Commits all pending changes in the DataFormEditor to the corresponding property of the underlying business object. This method is mostly useful when the CommitMode property is set to Explicit.
Declaration
public bool CommitChanges()
Returns
True if the validation passes and the changes are committed successfully, false otherwise.
ValidateChanges()
Executes the validation logic associated with the current DataFormEditor. This method is mostly useful when the ValidationMode property is set to Explicit.
Declaration
public bool ValidateChanges()
Returns
True if the validation passes, false otherwise.
Events
ValidationCompleted
Raised when the validation of the editor has completed.
Declaration
public event EventHandler<DataFormEditorValidationCompletedEventArgs> ValidationCompleted
Event Value
ValueChanged
Raised when the value of the editor has changed.
Declaration
public event EventHandler<DataFormEditorValueChangedEventArgs> ValueChanged
Event Value