Show / Hide Table of Contents

Class DataForm

Displays data in a customizable form.

Inheritance
System.Object
DependencyObject
UIElement
FrameworkElement
Control
DataForm
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.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 = "HeaderElement", Type = typeof(ContentControl))]
[TemplatePart(Name = "ContentPresenter", Type = typeof(ContentPresenter))]
[TemplatePart(Name = "ValidationSummary", Type = typeof(ValidationSummary))]
[TemplatePart(Name = "FirstItemButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "PreviousItemButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "NextItemButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "LastItemButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "ButtonSeparator", Type = typeof(UIElement))]
[TemplatePart(Name = "NewItemButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "DeleteItemButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "EditButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "CommitButton", Type = typeof(ButtonBase))]
[TemplatePart(Name = "CancelButton", Type = typeof(ButtonBase))]
[StyleTypedProperty(Property = "CancelButtonStyle", StyleTargetType = typeof(ButtonBase))]
[StyleTypedProperty(Property = "CommitButtonStyle", StyleTargetType = typeof(ButtonBase))]
[StyleTypedProperty(Property = "DataFieldStyle", StyleTargetType = typeof(DataField))]
[StyleTypedProperty(Property = "ValidationSummaryStyle", StyleTargetType = typeof(ValidationSummary))]
public class DataForm : Control, IControl, IFrameworkElement, IUIElement, IDependencyObject

Constructors

| Improve this Doc View Source

DataForm()

Constructs a new instance of DataForm.

Declaration
public DataForm()

Fields

| Improve this Doc View Source

AutoCommitProperty

Identifies the AutoCommit dependency property.

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

AutoEditProperty

Identifies the AutoEdit dependency property.

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

AutoGenerateFieldsProperty

Identifies the AutoGenerateFields dependency property.

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

CancelButtonContentProperty

Identifies the CancelButtonContent dependency property.

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

CancelButtonStyleProperty

Identifies the CancelButtonContent dependency property.

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

CommandButtonsVisibilityProperty

Identifies the CommandButtonsVisibility dependency property.

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

CommitButtonContentProperty

Identifies the CommitButtonContent dependency property.

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

CommitButtonStyleProperty

Identifies the CommitButtonStyle dependency property.

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

ContentProperty

Identifies the Content dependency property.

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

CurrentIndexProperty

Identifies the CurrentIndex dependency property.

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

CurrentItemProperty

Identifies the CurrentItem dependency property.

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

DataFieldStyleProperty

Identifies the DataFieldStyle dependency property.

Declaration
public static readonly DependencyProperty DataFieldStyleProperty
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

EditTemplateProperty

Identifies the EditTemplate dependency property.

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

HeaderProperty

Identifies the Header dependency property.

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

HeaderTemplateProperty

Identifies the HeaderTemplate dependency property.

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

HeaderVisibilityProperty

Identifies the HeaderTemplate dependency property.

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

IsEmptyProperty

Identifies the IsEmpty dependency property.

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

IsItemChangedProperty

Identifies the IsItemChanged dependency property.

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

IsItemValidProperty

Identifies the IsItemValid dependency property.

Declaration
public static readonly DependencyProperty IsItemValidProperty
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

ItemsSourceProperty

Identifies the ItemsSource dependency property.

Declaration
public static readonly DependencyProperty ItemsSourceProperty
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

ModeProperty

Identifies the Mode dependency property.

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

NewItemTemplateProperty

Identifies the NewItemTemplate dependency property.

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

ReadOnlyTemplateProperty

Identifies the ReadOnlyTemplate dependency property.

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

ValidationSummaryStyleProperty

Identifies the ValidationSummaryStyle dependency property.

Declaration
public static readonly DependencyProperty ValidationSummaryStyleProperty
Field Value
Type Description
DependencyProperty

Properties

| Improve this Doc View Source

AutoCommit

Gets or sets a value that indicates whether edited items are committed when the current item is changed.

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

AutoEdit

Gets or sets a value that indicates whether or not the DataForm should be permanently in edit mode.

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

AutoGenerateFields

Gets or sets a value that indicates whether or not to automatically generate the DataFields collection.

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

CancelButtonContent

Gets or sets the content of the Cancel button.

Declaration
public object CancelButtonContent { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

CancelButtonStyle

Gets or sets the style of the Cancel button.

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

CommandButtonsVisibility

Gets or sets a value that indicates which command buttons are visible on the DataForm .

Declaration
[TypeConverter(typeof(DataFormCommandButtonsVisibilityTypeConverter))]
public DataFormCommandButtonsVisibility? CommandButtonsVisibility { get; set; }
Property Value
Type Description
System.Nullable<DataFormCommandButtonsVisibility>
| Improve this Doc View Source

CommitButtonContent

Gets or sets the content of the Commit button.

Declaration
public object CommitButtonContent { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

CommitButtonStyle

Gets or sets the style of the Commit button.

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

Content

Gets or sets the direct content of the DataForm, to be used when a template is not specified.

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

CurrentIndex

Gets or sets the index of the current item.

Declaration
public int CurrentIndex { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

CurrentItem

Gets or sets the current item.

Declaration
public object CurrentItem { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

DataFieldStyle

Gets or sets the developer-specified style for DataFields.

Declaration
public Style DataFieldStyle { get; set; }
Property Value
Type Description
Style
| 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

EditTemplate

Gets or sets the DataTemplate used when editing.

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

Header

Gets or sets the header for the DataForm .

Declaration
public object Header { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

HeaderTemplate

Gets or sets the DataTemplate used for the header of the DataForm .

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

HeaderVisibility

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

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

IsEmpty

Gets a value that indicates whether or not the control is displaying an item.

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

IsItemChanged

Gets a value that indicates whether or not the current item has been changed.

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

IsItemValid

Gets a value that indicates whether or not the current item is valid.

Declaration
public bool IsItemValid { get; }
Property Value
Type Description
System.Boolean
| 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

ItemsSource

Gets or sets a collection that is used to populate the form content of the control.

Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
Type Description
System.Collections.IEnumerable
| Improve this Doc View Source

LabelPosition

Gets or sets a value that indicates the position of labels in relation to the field.

Declaration
public DataFieldLabelPosition LabelPosition { get; set; }
Property Value
Type Description
DataFieldLabelPosition
| 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 DataFormMode Mode { get; }
Property Value
Type Description
DataFormMode
| Improve this Doc View Source

NewItemTemplate

Gets or sets the item template used when adding a new item.

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

ReadOnlyTemplate

Gets or sets the item template used when not editing.

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

ValidationSummary

Gets the ValidationSummary.

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

ValidationSummaryStyle

Gets or sets the developer-specified style for the ValidationSummary.

Declaration
public Style ValidationSummaryStyle { get; set; }
Property Value
Type Description
Style

Methods

| Improve this Doc View Source

AddNewItem()

Adds a new item.

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

Whether or not a new item was added.

| Improve this Doc View Source

BeginEdit()

Begins the editing of the current item.

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

Whether or not editing was begun.

| Improve this Doc View Source

CancelEdit()

Cancels the editing of the current item.

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

Whether or not the cancellation was successful.

| Improve this Doc View Source

CommitEdit()

Commits the edit of the current item and exits editing mode.

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

True if the commit succeeds; false otherwise.

| Improve this Doc View Source

CommitEdit(Boolean)

Commits the edit of the current item.

Declaration
public bool CommitEdit(bool exitEditingMode)
Parameters
Type Name Description
System.Boolean exitEditingMode

Whether or not editing mode should be exited after committing the edit.

Returns
Type Description
System.Boolean

True if the commit succeeds; false otherwise.

| Improve this Doc View Source

DeleteItem()

Deletes the current item.

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

Whether or not the item was deleted.

| Improve this Doc View Source

FindNameInContent(String)

Finds an object with a given name in the DataForm's content.

Declaration
public object FindNameInContent(string name)
Parameters
Type Name Description
System.String name

The name to search by.

Returns
Type Description
System.Object

The object, if found.

| Improve this Doc View Source

OnAddingNewItem(DataFormAddingNewItemEventArgs)

Raises the AddingItem event.

Declaration
protected virtual void OnAddingNewItem(DataFormAddingNewItemEventArgs e)
Parameters
Type Name Description
DataFormAddingNewItemEventArgs e

The event args.

| Improve this Doc View Source

OnApplyTemplate()

Applies the template for this control.

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

OnAutoGeneratingField(DataFormAutoGeneratingFieldEventArgs)

Raises the AutoGeneratingField event.

Declaration
protected virtual void OnAutoGeneratingField(DataFormAutoGeneratingFieldEventArgs e)
Parameters
Type Name Description
DataFormAutoGeneratingFieldEventArgs e

The event args.

| Improve this Doc View Source

OnBeginningEdit(CancelEventArgs)

Raises the BeginningEdit event.

Declaration
protected virtual void OnBeginningEdit(CancelEventArgs e)
Parameters
Type Name Description
System.ComponentModel.CancelEventArgs e

The event args.

| Improve this Doc View Source

OnContentLoaded(DataFormContentLoadEventArgs)

Raises the ContentLoaded event.

Declaration
protected virtual void OnContentLoaded(DataFormContentLoadEventArgs e)
Parameters
Type Name Description
DataFormContentLoadEventArgs e

The event args.

| Improve this Doc View Source

OnContentLoading(DataFormContentLoadEventArgs)

Raises the ContentLoading event.

Declaration
protected virtual void OnContentLoading(DataFormContentLoadEventArgs e)
Parameters
Type Name Description
DataFormContentLoadEventArgs e

The event args.

| Improve this Doc View Source

OnCreateAutomationPeer()

Returns an automation peer for this DataForm.

Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type Description
AutomationPeer

The automation peer.

Overrides
UIElement.OnCreateAutomationPeer()
| Improve this Doc View Source

OnCurrentItemChanged(EventArgs)

Raises the CurrentItemChanged event.

Declaration
protected virtual void OnCurrentItemChanged(EventArgs e)
Parameters
Type Name Description
System.EventArgs e

The event args.

| Improve this Doc View Source

OnDeletingItem(CancelEventArgs)

Raises the DeletingItem event.

Declaration
protected virtual void OnDeletingItem(CancelEventArgs e)
Parameters
Type Name Description
System.ComponentModel.CancelEventArgs e

The event args.

| Improve this Doc View Source

OnItemEditEnded(DataFormEditEndedEventArgs)

Raises the ItemEditEnded event.

Declaration
protected virtual void OnItemEditEnded(DataFormEditEndedEventArgs e)
Parameters
Type Name Description
DataFormEditEndedEventArgs e

The event args.

| Improve this Doc View Source

OnItemEditEnding(DataFormEditEndingEventArgs)

Raises the ItemEditEnding event.

Declaration
protected virtual void OnItemEditEnding(DataFormEditEndingEventArgs e)
Parameters
Type Name Description
DataFormEditEndingEventArgs e

The event args.

| Improve this Doc View Source

OnValidatingItem(CancelEventArgs)

Raises the ValidatingItem event.

Declaration
protected virtual void OnValidatingItem(CancelEventArgs e)
Parameters
Type Name Description
System.ComponentModel.CancelEventArgs e

The event args.

| Improve this Doc View Source

ValidateItem()

Validates the current item.

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

Whether or not the current item is valid.

Events

| Improve this Doc View Source

AddingNewItem

Event handler for when an item is being added.

Declaration
public event EventHandler<DataFormAddingNewItemEventArgs> AddingNewItem
Event Type
Type Description
System.EventHandler<DataFormAddingNewItemEventArgs>
| Improve this Doc View Source

AutoGeneratingField

Event handler for when a field is being auto-generated.

Declaration
public event EventHandler<DataFormAutoGeneratingFieldEventArgs> AutoGeneratingField
Event Type
Type Description
System.EventHandler<DataFormAutoGeneratingFieldEventArgs>
| Improve this Doc View Source

BeginningEdit

Event handler for when an edit is beginning. Cannot be canceled when AutoEdit is true.

Declaration
public event EventHandler<CancelEventArgs> BeginningEdit
Event Type
Type Description
System.EventHandler<System.ComponentModel.CancelEventArgs>
| Improve this Doc View Source

ContentLoaded

Event handler for when content is loaded.

Declaration
public event EventHandler<DataFormContentLoadEventArgs> ContentLoaded
Event Type
Type Description
System.EventHandler<DataFormContentLoadEventArgs>
| Improve this Doc View Source

ContentLoading

Event handler for when content is about to be loaded.

Declaration
public event EventHandler<DataFormContentLoadEventArgs> ContentLoading
Event Type
Type Description
System.EventHandler<DataFormContentLoadEventArgs>
| Improve this Doc View Source

CurrentItemChanged

Event handler for when the current item has changed.

Declaration
public event EventHandler<EventArgs> CurrentItemChanged
Event Type
Type Description
System.EventHandler<System.EventArgs>
| Improve this Doc View Source

DeletingItem

Event handler for when an item is being deleted.

Declaration
public event EventHandler<CancelEventArgs> DeletingItem
Event Type
Type Description
System.EventHandler<System.ComponentModel.CancelEventArgs>
| Improve this Doc View Source

EditEnded

Event handler for when an edit has ended.

Declaration
public event EventHandler<DataFormEditEndedEventArgs> EditEnded
Event Type
Type Description
System.EventHandler<DataFormEditEndedEventArgs>
| Improve this Doc View Source

EditEnding

Event handler for when an edit is ending.

Declaration
public event EventHandler<DataFormEditEndingEventArgs> EditEnding
Event Type
Type Description
System.EventHandler<DataFormEditEndingEventArgs>
| Improve this Doc View Source

ValidatingItem

Event handler for when the item is being validated.

Declaration
public event EventHandler<CancelEventArgs> ValidatingItem
Event Type
Type Description
System.EventHandler<System.ComponentModel.CancelEventArgs>

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