Show / Hide Table of Contents

Class DataField

Contains a control and generates labels and descriptions for it.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
Control
DataField
Inherited Members
Control.EnableBaseControlHandlingOfVisualStates
Control.ManageIsEnabled(Boolean)
Control.Background
Control.BackgroundProperty
Control.BorderBrush
Control.BorderBrushProperty
Control.BorderThickness
Control.BorderThicknessProperty
Control.FontWeight
Control.FontWeightProperty
Control.FontStyle
Control.FontStyleProperty
Control.Foreground
Control.ForegroundProperty
Control.FontFamily
Control.FontFamilyProperty
Control.FontSize
Control.FontSizeProperty
Control.TextDecorations
Control.TextDecorationsProperty
Control.Padding
Control.PaddingProperty
Control.HorizontalContentAlignment
Control.HorizontalContentAlignmentProperty
Control.VerticalContentAlignment
Control.VerticalContentAlignmentProperty
Control.TabIndex
Control.TabIndexProperty
Control.IsTabStop
Control.IsTabStopProperty
Control.TabNavigation
Control.TabNavigationProperty
Control.Template
Control.TemplateProperty
Control.ApplyTemplate()
Control.GetTemplateChild(String)
Control.Focus()
Control.HandlesScrolling
Control.OnGotFocus(RoutedEventArgs)
Control.OnLostFocus(RoutedEventArgs)
Control.CreateDomElement(Object, Object)
Control.CharacterSpacingProperty
Control.CharacterSpacing
Control.FontStretchProperty
Control.FontStretch
Control.OnDrop(DragEventArgs)
Control.OnDragEnter(DragEventArgs)
Control.OnDragLeave(DragEventArgs)
Control.OnTextInputUpdate(TextCompositionEventArgs)
Control.MeasureOverride(Size)
Control.ArrangeOverride(Size)
FrameworkElement.LayoutUpdated
FrameworkElement.SizeChanged
FrameworkElement.ResourceLookupMode
FrameworkElement.StyleProperty
FrameworkElement.Style
FrameworkElement.DefaultStyleKeyProperty
FrameworkElement.DefaultStyleKey
FrameworkElement.OverridesDefaultStyleProperty
FrameworkElement.OverridesDefaultStyle
FrameworkElement.OnVisualParentChanged(DependencyObject)
FrameworkElement.VisualChildrenCount
FrameworkElement.GetVisualChild(Int32)
FrameworkElement.Parent
FrameworkElement.AddLogicalChild(Object)
FrameworkElement.RemoveLogicalChild(Object)
FrameworkElement.LogicalChildren
FrameworkElement.TemplatedParent
FrameworkElement.Resources
FrameworkElement.IsLoaded
FrameworkElement.SetBinding(DependencyProperty, BindingBase)
FrameworkElement.SetBinding(DependencyProperty, Binding)
FrameworkElement.GetBindingExpression(DependencyProperty)
FrameworkElement.Cursor
FrameworkElement.CursorProperty
FrameworkElement.FindName(String)
FrameworkElement.Name
FrameworkElement.NameProperty
FrameworkElement.DataContext
FrameworkElement.DataContextProperty
FrameworkElement.DataContextChanged
FrameworkElement.Triggers
FrameworkElement.FlowDirectionProperty
FrameworkElement.FlowDirection
FrameworkElement.LanguageProperty
FrameworkElement.Language
FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs)
FrameworkElement.Tag
FrameworkElement.TagProperty
FrameworkElement.LoadedEvent
FrameworkElement.Loaded
FrameworkElement.Unloaded
FrameworkElement.BindingValidationError
FrameworkElement.ContextMenuProperty
FrameworkElement.ContextMenu
FrameworkElement.ContextMenuOpening
FrameworkElement.ToolTipProperty
FrameworkElement.ToolTip
FrameworkElement.INTERNAL_OnDetachedFromVisualTree()
FrameworkElement.INTERNAL_OnAttachedToVisualTree()
FrameworkElement.Height
FrameworkElement.HeightProperty
FrameworkElement.Width
FrameworkElement.WidthProperty
FrameworkElement.HorizontalAlignment
FrameworkElement.HorizontalAlignmentProperty
FrameworkElement.VerticalAlignment
FrameworkElement.VerticalAlignmentProperty
FrameworkElement.Margin
FrameworkElement.MarginProperty
FrameworkElement.MinHeight
FrameworkElement.MinHeightProperty
FrameworkElement.MinWidth
FrameworkElement.MinWidthProperty
FrameworkElement.MaxHeight
FrameworkElement.MaxHeightProperty
FrameworkElement.MaxWidth
FrameworkElement.MaxWidthProperty
FrameworkElement.ActualWidthProperty
FrameworkElement.ActualWidth
FrameworkElement.ActualHeightProperty
FrameworkElement.ActualHeight
UIElement.TransformToVisual(UIElement)
UIElement.OnCreateAutomationPeer()
UIElement.RenderSize
UIElement.DesiredSize
UIElement.InvalidateMeasure()
UIElement.InvalidateArrange()
UIElement.Measure(Size)
UIElement.Arrange(Rect)
UIElement.UpdateLayout()
UIElement.DragEnter
UIElement.DragLeave
UIElement.Drop
UIElement.DragOver
UIElement.CacheMode
UIElement.CacheModeProperty
UIElement.Projection
UIElement.ProjectionProperty
UIElement.VisualParent
UIElement.AddVisualChild(UIElement)
UIElement.RemoveVisualChild(UIElement)
UIElement.OnVisualChildrenChanged(DependencyObject, DependencyObject)
UIElement.XamlSourcePath
UIElement.ClipToBounds
UIElement.ClipToBoundsProperty
UIElement.ClipProperty
UIElement.Clip
UIElement.IsEnabledProperty
UIElement.IsEnabled
UIElement.IsEnabledChanged
UIElement.EffectProperty
UIElement.Effect
UIElement.RenderTransformProperty
UIElement.RenderTransform
UIElement.RenderTransformOriginProperty
UIElement.RenderTransformOrigin
UIElement.UseLayoutRounding
UIElement.UseLayoutRoundingProperty
UIElement.Visibility
UIElement.VisibilityProperty
UIElement.IsVisibleProperty
UIElement.IsVisible
UIElement.IsVisibleChanged
UIElement.OpacityProperty
UIElement.Opacity
UIElement.OpacityMaskProperty
UIElement.OpacityMask
UIElement.IsHitTestVisible
UIElement.IsHitTestVisibleProperty
UIElement.AllowDrop
UIElement.AllowDropProperty
UIElement.CaptureMouse()
UIElement.IsMouseCaptured
UIElement.ReleaseMouseCapture()
UIElement.AllowScrollOnTouchMove
UIElement.AllowScrollOnTouchMoveProperty
UIElement.AddHandler(RoutedEvent, Delegate, Boolean)
UIElement.RemoveHandler(RoutedEvent, Delegate)
UIElement.MouseMoveEvent
UIElement.MouseMove
UIElement.OnMouseMove(MouseEventArgs)
UIElement.MouseLeftButtonDownEvent
UIElement.MouseLeftButtonDown
UIElement.OnMouseLeftButtonDown(MouseButtonEventArgs)
UIElement.MouseRightButtonDownEvent
UIElement.MouseRightButtonDown
UIElement.OnMouseRightButtonDown(MouseButtonEventArgs)
UIElement.MouseWheelEvent
UIElement.MouseWheel
UIElement.OnMouseWheel(MouseWheelEventArgs)
UIElement.MouseLeftButtonUpEvent
UIElement.MouseLeftButtonUp
UIElement.OnMouseLeftButtonUp(MouseButtonEventArgs)
UIElement.MouseEnterEvent
UIElement.MouseEnter
UIElement.OnMouseEnter(MouseEventArgs)
UIElement.MouseLeaveEvent
UIElement.MouseLeave
UIElement.OnMouseLeave(MouseEventArgs)
UIElement.TextInputStartEvent
UIElement.TextInputStart
UIElement.OnTextInputStart(TextCompositionEventArgs)
UIElement.TextInputEvent
UIElement.TextInput
UIElement.OnTextInput(TextCompositionEventArgs)
UIElement.TextInputUpdateEvent
UIElement.TextInputUpdate
UIElement.TappedEvent
UIElement.Tapped
UIElement.OnTapped(TappedRoutedEventArgs)
UIElement.MouseRightButtonUpEvent
UIElement.MouseRightButtonUp
UIElement.OnMouseRightButtonUp(MouseButtonEventArgs)
UIElement.KeyDownEvent
UIElement.KeyDown
UIElement.OnKeyDown(KeyEventArgs)
UIElement.KeyUpEvent
UIElement.KeyUp
UIElement.OnKeyUp(KeyEventArgs)
UIElement.GotFocusEvent
UIElement.GotFocus
UIElement.LostFocusEvent
UIElement.LostFocus
UIElement.LostMouseCapture
UIElement.OnLostMouseCapture(MouseEventArgs)
UIElement.INTERNAL_AttachToDomEvents()
UIElement.INTERNAL_DetachFromDomEvents()
DependencyObject.GetValue(DependencyProperty)
DependencyObject.SetCurrentValue(DependencyProperty, Object)
DependencyObject.ReadLocalValue(DependencyProperty)
DependencyObject.SetValue(DependencyProperty, Object)
DependencyObject.SetValue(DependencyPropertyKey, Object)
DependencyObject.CoerceValue(DependencyProperty)
DependencyObject.Dispatcher
DependencyObject.ClearValue(DependencyProperty)
DependencyObject.ClearValue(DependencyPropertyKey)
DependencyObject.CheckAccess()
DependencyObject.GetAnimationBaseValue(DependencyProperty)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.Data.DataForm.Toolkit.dll
Syntax
[TemplatePart(Name = "ContentControl", Type = typeof(ContentControl))]
[StyleTypedProperty(Property = "DescriptionViewerStyle", StyleTargetType = typeof(DescriptionViewer))]
[StyleTypedProperty(Property = "LabelStyle", StyleTargetType = typeof(Label))]
public class DataField : Control, IControl, IFrameworkElement, IUIElement, IDependencyObject

Constructors

| Improve this Doc View Source

DataField()

Constructs a new instance of Field.

Declaration
public DataField()

Fields

| Improve this Doc View Source

ContentProperty

Identifies the Content property.

Declaration
public static readonly DependencyProperty ContentProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

DescriptionProperty

Identifies the DescriptionViewerPosition dependency property.

Declaration
public static readonly DependencyProperty DescriptionProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

DescriptionViewerPositionProperty

Identifies the DescriptionViewerPosition dependency property.

Declaration
public static readonly DependencyProperty DescriptionViewerPositionProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

DescriptionViewerStyleProperty

Identifies the DescriptionViewerStyle dependency property.

Declaration
public static readonly DependencyProperty DescriptionViewerStyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

DescriptionViewerVisibilityProperty

Identifies the DescriptionViewerVisibility dependency property.

Declaration
public static readonly DependencyProperty DescriptionViewerVisibilityProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

IsFieldGroupProperty

Identifies the IsFieldGroup attached property.

Declaration
public static readonly DependencyProperty IsFieldGroupProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

IsRequiredProperty

Identifies the IsReadOnly dependency property.

Declaration
public static readonly DependencyProperty IsRequiredProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

LabelPositionProperty

Identifies the LabelPosition dependency property.

Declaration
public static readonly DependencyProperty LabelPositionProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

LabelProperty

Identifies the Label dependency property.

Declaration
public static readonly DependencyProperty LabelProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

LabelStyleProperty

Identifies the LabelStyle dependency property.

Declaration
public static readonly DependencyProperty LabelStyleProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

LabelVisibilityProperty

Identifies the LabelVisibility dependency property.

Declaration
public static readonly DependencyProperty LabelVisibilityProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

ModeProperty

Identifies the Mode dependency property.

Declaration
public static readonly DependencyProperty ModeProperty
Field Value
Type Description
DependencyProperty
| Improve this Doc View Source

PropertyPathProperty

Identifies the PropertyPath dependency property.

Declaration
public static readonly DependencyProperty PropertyPathProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

Content

Gets or sets the content of the field.

Declaration
public FrameworkElement Content { get; set; }
Property Value
Type Description
FrameworkElement
| Improve this Doc View Source

Description

Gets or sets the text displayed in the description viewer.

Declaration
public string Description { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

DescriptionViewerStyle

Gets or sets the developer-specified style for descriptions.

Declaration
public Style DescriptionViewerStyle { get; set; }
Property Value
Type Description
Style
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

IsRequired

Gets or sets a value indicating whether this field is required.

Declaration
public bool IsRequired { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsValid

Gets a value that indicates whether the input control contains valid data.

Declaration
public bool IsValid { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

LabelStyle

Gets or sets the developer-specified style for labels.

Declaration
public Style LabelStyle { get; set; }
Property Value
Type Description
Style
| Improve this Doc View Source

LabelVisibility

Gets or sets a value that indicates whether the label is visible.

Declaration
public Visibility LabelVisibility { get; set; }
Property Value
Type Description
Visibility
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

GetIsFieldGroup(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.

| Improve this Doc View Source

OnApplyTemplate()

Applies the template for this field.

Declaration
public override void OnApplyTemplate()
Overrides
Control.OnApplyTemplate()
| Improve this Doc View Source

SetIsFieldGroup(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.

| Improve this Doc View Source

Validate()

Validates this field.

Declaration
public bool Validate()
Returns
Type Description
System.Boolean

Whether or not the field is valid.

Extension Methods

DependencyObjectHelper.GetSelfAndAncestors(DependencyObject)
UIElementExtendedRoutedEventExtensions.AddHandler(UIElement, ExtendedRoutedEvent, Delegate, Boolean)
UIElementExtendedRoutedEventExtensions.RemoveHandler(UIElement, ExtendedRoutedEvent, Delegate)
VisualTreeExtensions.GetVisualAncestors(DependencyObject)
VisualTreeExtensions.GetVisualAncestorsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualChildren(DependencyObject)
VisualTreeExtensions.GetVisualChildrenAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualDescendants(DependencyObject)
VisualTreeExtensions.GetVisualDescendantsAndSelf(DependencyObject)
VisualTreeExtensions.GetVisualSiblings(DependencyObject)
VisualTreeExtensions.GetVisualSiblingsAndSelf(DependencyObject)
VisualTreeExtensions.GetBoundsRelativeTo(FrameworkElement, UIElement)
VisualTreeExtensions.InvokeOnLayoutUpdated(FrameworkElement, Action)
  • Improve this Doc
  • View Source