New to Telerik UI for WPFStart a free 30-day trial

A field used to display and edit data in RadDataForm.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

C#
[TelerikToolboxCategory("Input")]
public class DataFormDataField : ContentControl

Inheritance: objectDataFormDataField

Derived Classes: CardViewDataFormDataFieldDataFormCheckBoxFieldDataFormComboBoxFieldDataFormDateField

Constructors

Initializes a new instance of the DataFormDataField class.

C#
public DataFormDataField()

Fields

DescriptionProperty

DependencyProperty

Identifies the Description dependency property.

C#
public static readonly DependencyProperty DescriptionProperty

IsEditingProperty

DependencyProperty

Gets whether the user can edit the values in the control.

C#
public static readonly DependencyProperty IsEditingProperty

IsReadOnlyProperty

DependencyProperty

Identifies the IsReadOnly dependency property.

C#
public static readonly DependencyProperty IsReadOnlyProperty

ItemProperty

DependencyProperty

Represents the Item dependency property.

C#
public static readonly DependencyProperty ItemProperty

LabelPositionProperty

DependencyProperty

Represents the LabelPosition dependency property.

C#
public static readonly DependencyProperty LabelPositionProperty

LabelProperty

DependencyProperty

Identifies the Label dependency property.

C#
public static readonly DependencyProperty LabelProperty

LabelTemplateProperty

DependencyProperty

Represent the LabelTemplate dependency property.

C#
public static readonly DependencyProperty LabelTemplateProperty

ModeProperty

DependencyProperty

Identifies the Mode dependency property.

C#
public static readonly DependencyProperty ModeProperty

Properties

Gets or sets the binding which points to the data member to display/edit in the field.

C#
public Binding DataMemberBinding { get; set; }
Property Value:

The data member binding.

Gets or sets the text displayed in the description viewer.

C#
public string Description { get; set; }

Gets whether the user can edit the values in the control.

C#
public bool IsEditing { get; set; }

Gets or sets a value that indicates whether the user can edit the values in the control.

C#
public bool IsReadOnly { get; set; }

The business object bound to the field.

C#
public object Item { get; set; }

Gets or sets the content of the label displayed for this control.

C#
public object Label { get; set; }

Gets or sets the position of labels in data fields in RadDataForm.

C#
public LabelPosition LabelPosition { get; set; }

LabelTemplate

DataTemplate

Gets or sets the label template.

C#
public DataTemplate LabelTemplate { get; set; }
Property Value:

The label template.

Gets or sets the mode.

C#
public RadDataFormMode Mode { get; set; }

Methods

Returns a control to display and edit the underlying data.

C#
protected virtual Control GetControl()
Returns:

Control

GetControlBindingProperty()

DependencyProperty

Returns the dependency property of the control to be bound to the underlying data.

C#
protected virtual DependencyProperty GetControlBindingProperty()
Returns:

DependencyProperty

GetReadOnlyControl()

FrameworkElement

Returns a control to display the underlying data.

C#
protected virtual FrameworkElement GetReadOnlyControl()
Returns:

FrameworkElement

Handles the initialization of the child components after the template of this one is applied.

C#
protected virtual void InitializeComponents()

When overridden in a derived class, is invoked whenever application code or internal processes call .

C#
public override void OnApplyTemplate()

Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.

C#
protected override AutomationPeer OnCreateAutomationPeer()
Returns:

AutomationPeer

The type-specific AutomationPeer implementation.

C#
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters:eKeyboardFocusChangedEventArgs

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Called when the Item property changes.

C#
protected virtual void OnItemPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters:eDependencyPropertyChangedEventArgs
C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

Called when DataFormDataField gets unloaded.

C#
protected virtual void OnUnloaded(object sender, RoutedEventArgs e)
Parameters:senderobject

The sender.

eRoutedEventArgs

The RoutedEventArgs instance containing the event data.

Prepares the inner control.

C#
protected void PrepareControl()

Resets the theme.

C#
public void ResetTheme()