DataFormEditor
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
Initializes a new instance of the DataFormEditor class.
public DataFormEditor()
Fields
ActualEditorStyleProperty
BindableProperty
Identifies the ActualEditorStyle property.
public static readonly BindableProperty ActualEditorStyleProperty
ActualErrorDisplayOptionsProperty
BindableProperty
Identifies the ActualErrorDisplayOptions property.
public static readonly BindableProperty ActualErrorDisplayOptionsProperty
ActualErrorImageSourceProperty
BindableProperty
Identifies the ActualErrorImageSource property.
public static readonly BindableProperty ActualErrorImageSourceProperty
ActualErrorImageStyleProperty
BindableProperty
Identifies the ActualErrorImageStyle property.
public static readonly BindableProperty ActualErrorImageStyleProperty
ActualErrorLabelStyleProperty
BindableProperty
Identifies the ActualErrorLabelStyle property.
public static readonly BindableProperty ActualErrorLabelStyleProperty
ActualErrorLengthProperty
BindableProperty
Identifies the ActualErrorLength property.
public static readonly BindableProperty ActualErrorLengthProperty
ActualErrorPositionProperty
BindableProperty
Identifies the ActualErrorPosition property.
public static readonly BindableProperty ActualErrorPositionProperty
ActualHeaderDisplayOptionsProperty
BindableProperty
Identifies the ActualHeaderDisplayOptions property.
public static readonly BindableProperty ActualHeaderDisplayOptionsProperty
ActualHeaderImageSourceProperty
BindableProperty
Identifies the ActualHeaderImageSource property.
public static readonly BindableProperty ActualHeaderImageSourceProperty
ActualHeaderImageStyleProperty
BindableProperty
Identifies the ActualHeaderImageStyle property.
public static readonly BindableProperty ActualHeaderImageStyleProperty
ActualHeaderLabelStyleProperty
BindableProperty
Identifies the ActualHeaderLabelStyle property.
public static readonly BindableProperty ActualHeaderLabelStyleProperty
ActualHeaderLengthProperty
BindableProperty
Identifies the ActualHeaderLength property.
public static readonly BindableProperty ActualHeaderLengthProperty
ActualHeaderPositionProperty
BindableProperty
Identifies the ActualHeaderPosition property.
public static readonly BindableProperty ActualHeaderPositionProperty
ColumnSpacingProperty
BindableProperty
Identifies the ColumnSpacing property.
public static readonly BindableProperty ColumnSpacingProperty
CommitModeProperty
BindableProperty
Identifies the CommitMode property.
public static readonly BindableProperty CommitModeProperty
ConverterParameterProperty
BindableProperty
Identifies the ConverterParameter property.
public static readonly BindableProperty ConverterParameterProperty
ConverterProperty
BindableProperty
Identifies the Converter property.
public static readonly BindableProperty ConverterProperty
EditorStyleProperty
BindableProperty
Identifies the EditorStyle property.
public static readonly BindableProperty EditorStyleProperty
EditorValueProperty
BindableProperty
Identifies the EditorValue property.
public static readonly BindableProperty EditorValueProperty
ErrorDisplayOptionsProperty
BindableProperty
Identifies the ErrorDisplayOptions property.
public static readonly BindableProperty ErrorDisplayOptionsProperty
ErrorImageSourceProperty
BindableProperty
Identifies the ErrorImageSource property.
public static readonly BindableProperty ErrorImageSourceProperty
ErrorImageStyleProperty
BindableProperty
Identifies the ErrorImageStyle property.
public static readonly BindableProperty ErrorImageStyleProperty
ErrorLabelStyleProperty
BindableProperty
Identifies the ErrorLabelStyle property.
public static readonly BindableProperty ErrorLabelStyleProperty
ErrorLengthProperty
BindableProperty
Identifies the ErrorLength property.
public static readonly BindableProperty ErrorLengthProperty
ErrorPositionProperty
BindableProperty
Identifies the ErrorPosition property.
public static readonly BindableProperty ErrorPositionProperty
HasPendingChangesProperty
BindableProperty
Identifies the HasPendingChanges property.
public static readonly BindableProperty HasPendingChangesProperty
HasValidationErrorsProperty
BindableProperty
Identifies the HasValidationErrors property.
public static readonly BindableProperty HasValidationErrorsProperty
HeaderDisplayOptionsProperty
BindableProperty
Identifies the HeaderDisplayOptions property.
public static readonly BindableProperty HeaderDisplayOptionsProperty
HeaderImageSourceProperty
BindableProperty
Identifies the HeaderImageSource property.
public static readonly BindableProperty HeaderImageSourceProperty
HeaderImageStyleProperty
BindableProperty
Identifies the HeaderImageStyle property.
public static readonly BindableProperty HeaderImageStyleProperty
HeaderLabelStyleProperty
BindableProperty
Identifies the HeaderLabelStyle property.
public static readonly BindableProperty HeaderLabelStyleProperty
HeaderLengthProperty
BindableProperty
Identifies the HeaderLength property.
public static readonly BindableProperty HeaderLengthProperty
HeaderPositionProperty
BindableProperty
Identifies the HeaderPosition property.
public static readonly BindableProperty HeaderPositionProperty
HeaderTextProperty
BindableProperty
Identifies the HeaderText property.
public static readonly BindableProperty HeaderTextProperty
IsErrorImageVisibleProperty
BindableProperty
Identifies the IsErrorImageVisible property.
public static readonly BindableProperty IsErrorImageVisibleProperty
IsErrorLabelVisibleProperty
BindableProperty
Identifies the IsErrorLabelVisible property.
public static readonly BindableProperty IsErrorLabelVisibleProperty
IsHeaderImageVisibleProperty
BindableProperty
Identifies the IsHeaderImageVisible property.
public static readonly BindableProperty IsHeaderImageVisibleProperty
IsHeaderLabelVisibleProperty
BindableProperty
Identifies the IsHeaderLabelVisible property.
public static readonly BindableProperty IsHeaderLabelVisibleProperty
IsReadOnlyProperty
BindableProperty
Identifies the IsReadOnly property.
public static readonly BindableProperty IsReadOnlyProperty
PropertyNameProperty
BindableProperty
Identifies the PropertyName property.
public static readonly BindableProperty PropertyNameProperty
PropertyValueProperty
BindableProperty
Identifies the PropertyValue property.
public static readonly BindableProperty PropertyValueProperty
RowSpacingProperty
BindableProperty
Identifies the RowSpacing property.
public static readonly BindableProperty RowSpacingProperty
ValidationModeProperty
BindableProperty
Identifies the ValidationMode property.
public static readonly BindableProperty ValidationModeProperty
Properties
ActualEditorStyle
Style
Gets the result from merging the Style specified in the EditorStyle property and the default base Style for that property.
public Style ActualEditorStyle { get; }
Gets the actual value specified with the ErrorDisplayOptions property or inherided from the ErrorDisplayOptions property of the RadDataForm.
public DataFormErrorDisplayOptions ActualErrorDisplayOptions { get; }
ActualErrorImageSource
ImageSource
Gets the actual value specified with the ErrorImageSource property or inherided from the ErrorImageSource property of the RadDataForm.
public ImageSource ActualErrorImageSource { get; }
Gets the result from merging the Style specified in the ErrorImageStyle property and the default base Style for that property.
public Style ActualErrorImageStyle { get; }
Gets the result from merging the Style specified in the ErrorLabelStyle property and the default base Style for that property.
public Style ActualErrorLabelStyle { get; }
ActualErrorLength
GridLength
Gets the actual value specified with the ErrorLength property or inherided from the ErrorLength property of the RadDataForm.
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ActualErrorLength { get; }
Gets the actual value specified with the ErrorPosition property or inherided from the ErrorPosition property of the RadDataForm.
public DataFormErrorPosition ActualErrorPosition { get; }
Gets the actual value specified with the HeaderDisplayOptions property or inherided from the HeaderDisplayOptions property of the RadDataForm.
public DataFormHeaderDisplayOptions ActualHeaderDisplayOptions { get; }
ActualHeaderImageSource
ImageSource
Gets the actual value specified with the HeaderImageSource property or inherided from the HeaderImageSource property of the RadDataForm.
public ImageSource ActualHeaderImageSource { get; }
Gets the result from merging the Style specified in the HeaderImageStyle property and the default base Style for that property.
public Style ActualHeaderImageStyle { get; }
Gets the result from merging the Style specified in the HeaderLabelStyle property and the default base Style for that property.
public Style ActualHeaderLabelStyle { get; }
ActualHeaderLength
GridLength
Gets the actual value specified with the HeaderLength property or inherided from the HeaderLength property of the RadDataForm.
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ActualHeaderLength { get; }
Gets the actual value specified with the HeaderPosition property or inherided from the HeaderPosition property of the RadDataForm.
public DataFormHeaderPosition ActualHeaderPosition { get; }
Gets or sets the horizontal spacing between the columns in the DataFormEditor.
public double ColumnSpacing { get; set; }
Gets or sets the current commit mode of the DataFormEditor. For more information see the DataFormCommitMode type.
public DataFormCommitMode CommitMode { get; set; }
Converter
IValueConverter
Gets or sets a IValueConverter to use when performing conversions between the value from the business object and the current editor.
public IValueConverter Converter { get; set; }
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.
public object ConverterParameter { get; set; }
EditorStyle
Style
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.
public Style EditorStyle { get; set; }
Gets or sets the current edited value, before applying it to the business object.
public object EditorValue { get; set; }
Gets or sets display options of the error indicator in the DataFormEditor. For more information see the DataFormErrorDisplayOptions type.
public DataFormErrorDisplayOptions? ErrorDisplayOptions { get; set; }
ErrorImageSource
ImageSource
Gets or sets the ImageSource of the error icon.
public ImageSource ErrorImageSource { get; set; }
ErrorImageStyle
Style
Gets or sets the Style applied to the error icon. The target type of this Style is .
public Style ErrorImageStyle { get; set; }
ErrorLabelStyle
Style
Gets or sets the Style applied to the error label. The target type of this Style is .
public Style ErrorLabelStyle { get; set; }
ErrorLength
GridLength
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.
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength ErrorLength { get; set; }
Gets or sets a value specifying the relative position of the error indicator in the DataFormEditor. For more information see the DataFormErrorPosition type.
public DataFormErrorPosition? ErrorPosition { get; set; }
Gets a value indicating whether there are pending changes.
public bool HasPendingChanges { get; }
Gets a value indicating whether there are validation errors.
public bool HasValidationErrors { get; }
Gets or sets the display options of the header in the DataFormEditor. For more information see the DataFormHeaderDisplayOptions type.
public DataFormHeaderDisplayOptions? HeaderDisplayOptions { get; set; }
HeaderImageSource
ImageSource
Gets or sets the ImageSource of the header icon.
public ImageSource HeaderImageSource { get; set; }
HeaderImageStyle
Style
Gets or sets the Style applied to the header icon. The target type of this Style is .
public Style HeaderImageStyle { get; set; }
HeaderLabelStyle
Style
Gets or sets the Style applied to the header label in the DataFormEditor. The target type of this Style is .
public Style HeaderLabelStyle { get; set; }
HeaderLength
GridLength
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.
[TypeConverter(typeof(GridLengthTypeConverter))]
public GridLength HeaderLength { get; set; }
Gets or sets a value specifying the relative position of the header label in the DataFormEditor. For more information see the DataFormHeaderPosition type.
public DataFormHeaderPosition? HeaderPosition { get; set; }
Gets or sets the text of the header label in the DataFormEditor.
public string HeaderText { get; set; }
Gets a value indicating whether the error icon is currently visible in the DataFormEditor.
public bool IsErrorImageVisible { get; }
Gets a value indicating whether the error label is currently visible in the DataFormEditor.
public bool IsErrorLabelVisible { get; }
Gets a value indicating whether the header icon is currently visible in the DataFormEditor.
public bool IsHeaderImageVisible { get; }
Gets a value indicating whether the header label is currently visible in the DataFormEditor.
public bool IsHeaderLabelVisible { get; }
Gets or sets a value indicating whether the current editor is in a read-only mode.
public bool? IsReadOnly { get; set; }
Gets or sets the name of the property from the business object this editor is bound to.
public string PropertyName { get; set; }
Gets or sets the value of the property from the business object this editor is bound to.
public object PropertyValue { get; set; }
Gets or sets the vertical spacing between the rows in the DataFormEditor.
public double RowSpacing { get; set; }
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.
public IReadOnlyList<DataFormEditorValidationError> ValidationErrors { get; }
Gets or sets the current validation mode of the DataFormEditor. For more information see the DataFormValidationMode type.
public DataFormValidationMode ValidationMode { get; set; }
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.
public IList<DataFormEditorValidationRule> ValidationRules { get; }
Methods
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.
public void CancelChanges()
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.
public bool CommitChanges()
True if the validation passes and the changes are committed successfully, false otherwise.
Executes the validation logic associated with the current DataFormEditor. This method is mostly useful when the ValidationMode property is set to Explicit.
Events
Raised when the validation of the editor has completed.
public event EventHandler<DataFormEditorValidationCompletedEventArgs> ValidationCompleted
Raised when the value of the editor has changed.
public event EventHandler<DataFormEditorValueChangedEventArgs> ValueChanged