Class DataField
Contains a control and generates labels and descriptions for it.
Inherited Members
Namespace: System.Windows.Controls
Assembly: DataForm.Toolkit.OpenSilver.dll
Syntax
public class DataField : Control
Constructors
| Improve this Doc View SourceDataField()
Constructs a new instance of Field.
Declaration
public DataField()
Fields
| Improve this Doc View SourceContentProperty
Identifies the Content property.
Declaration
public static readonly DependencyProperty ContentProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DescriptionProperty
Identifies the DescriptionViewerPosition dependency property.
Declaration
public static readonly DependencyProperty DescriptionProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DescriptionViewerPositionProperty
Identifies the DescriptionViewerPosition dependency property.
Declaration
public static readonly DependencyProperty DescriptionViewerPositionProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DescriptionViewerStyleProperty
Identifies the DescriptionViewerStyle dependency property.
Declaration
public static readonly DependencyProperty DescriptionViewerStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
DescriptionViewerVisibilityProperty
Identifies the DescriptionViewerVisibility dependency property.
Declaration
public static readonly DependencyProperty DescriptionViewerVisibilityProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsFieldGroupProperty
Identifies the IsFieldGroup attached property.
Declaration
public static readonly DependencyProperty IsFieldGroupProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsReadOnlyProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsRequiredProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsRequiredProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
LabelPositionProperty
Identifies the LabelPosition dependency property.
Declaration
public static readonly DependencyProperty LabelPositionProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
LabelProperty
Identifies the Label dependency property.
Declaration
public static readonly DependencyProperty LabelProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
LabelStyleProperty
Identifies the LabelStyle dependency property.
Declaration
public static readonly DependencyProperty LabelStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
LabelVisibilityProperty
Identifies the LabelVisibility dependency property.
Declaration
public static readonly DependencyProperty LabelVisibilityProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
ModeProperty
Identifies the Mode dependency property.
Declaration
public static readonly DependencyProperty ModeProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PropertyPathProperty
Identifies the PropertyPath dependency property.
Declaration
public static readonly DependencyProperty PropertyPathProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceContent
Gets or sets the content of the field.
Declaration
public FrameworkElement Content { get; set; }
Property Value
Type | Description |
---|---|
FrameworkElement |
Description
Gets or sets the text displayed in the description viewer.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DescriptionViewerPosition
Gets or sets a value that indicates the position of descriptions in relation to the field.
Declaration
public DataFieldDescriptionViewerPosition DescriptionViewerPosition { get; set; }
Property Value
Type | Description |
---|---|
DataFieldDescriptionViewerPosition |
DescriptionViewerStyle
Gets or sets the developer-specified style for descriptions.
Declaration
public Style DescriptionViewerStyle { get; set; }
Property Value
Type | Description |
---|---|
Style |
DescriptionViewerVisibility
Gets or sets a value that indicates whether the description viewer is visible.
Declaration
public Visibility DescriptionViewerVisibility { get; set; }
Property Value
Type | Description |
---|---|
Visibility |
IsReadOnly
Gets or sets a value that indicates whether the user can edit the values in the control.
Declaration
public bool IsReadOnly { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsRequired
Gets or sets a value indicating whether this field is required.
Declaration
public bool IsRequired { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsValid
Gets a value that indicates whether the input control contains valid data.
Declaration
public bool IsValid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Label
Gets or sets the content of the label displayed for this control.
Declaration
public object Label { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
LabelPosition
Gets or sets a value that indicates the position of the label in relation to the field.
Declaration
public DataFieldLabelPosition LabelPosition { get; set; }
Property Value
Type | Description |
---|---|
DataFieldLabelPosition |
LabelStyle
Gets or sets the developer-specified style for labels.
Declaration
public Style LabelStyle { get; set; }
Property Value
Type | Description |
---|---|
Style |
LabelVisibility
Gets or sets a value that indicates whether the label is visible.
Declaration
public Visibility LabelVisibility { get; set; }
Property Value
Type | Description |
---|---|
Visibility |
Mode
Gets a value that indicates whether the control is in read only, edit, or add new mode.
Declaration
public DataFieldMode Mode { get; set; }
Property Value
Type | Description |
---|---|
DataFieldMode |
PropertyPath
Gets or sets the path to the property that the control is bound to.
Declaration
public string PropertyPath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceGetIsFieldGroup(Panel)
Gets the IsFieldGroup attached property.
Declaration
public static bool GetIsFieldGroup(Panel target)
Parameters
Type | Name | Description |
---|---|---|
Panel | target | The target panel. |
Returns
Type | Description |
---|---|
System.Boolean | Whether the panel is a field group. |
OnApplyTemplate()
Applies the template for this field.
Declaration
public override void OnApplyTemplate()
Overrides
| Improve this Doc View SourceSetIsFieldGroup(Panel, Boolean)
Sets the IsFieldGroup attached property.
Declaration
public static void SetIsFieldGroup(Panel target, bool isFieldGroup)
Parameters
Type | Name | Description |
---|---|---|
Panel | target | The target panel. |
System.Boolean | isFieldGroup | Whether or not this panel should be a field group. |
Validate()
Validates this field.
Declaration
public bool Validate()
Returns
Type | Description |
---|---|
System.Boolean | Whether or not the field is valid. |