Class
DataFormDataField

A field used to display and edit data in RadDataForm.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

cs-api-definition
[TelerikToolboxCategory("Input")]
public class DataFormDataField : ContentControl

Inheritance: objectDataFormDataField

Derived Classes: CardViewDataFormDataFieldDataFormCheckBoxFieldDataFormComboBoxFieldDataFormDateField

Constructors

DataFormDataField()

Initializes a new instance of the DataFormDataField class.

Declaration

cs-api-definition
public DataFormDataField()

Fields

DescriptionProperty

Identifies the Description dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty DescriptionProperty

Field Value

DependencyProperty

IsEditingProperty

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

Declaration

cs-api-definition
public static readonly DependencyProperty IsEditingProperty

Field Value

DependencyProperty

IsReadOnlyProperty

Identifies the IsReadOnly dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsReadOnlyProperty

Field Value

DependencyProperty

ItemProperty

Represents the Item dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ItemProperty

Field Value

DependencyProperty

LabelPositionProperty

Represents the LabelPosition dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelPositionProperty

Field Value

DependencyProperty

LabelProperty

Identifies the Label dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelProperty

Field Value

DependencyProperty

LabelTemplateProperty

Represent the LabelTemplate dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty LabelTemplateProperty

Field Value

DependencyProperty

ModeProperty

Identifies the Mode dependency property.

Declaration

cs-api-definition
public static readonly DependencyProperty ModeProperty

Field Value

DependencyProperty

Properties

DataMemberBinding

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

Declaration

cs-api-definition
public Binding DataMemberBinding { get; set; }

Property Value

Binding

The data member binding.

Description

Gets or sets the text displayed in the description viewer.

Declaration

cs-api-definition
public string Description { get; set; }

Property Value

string

IsEditing

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

Declaration

cs-api-definition
public bool IsEditing { get; set; }

Property Value

bool

IsReadOnly

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

Declaration

cs-api-definition
public bool IsReadOnly { get; set; }

Property Value

bool

Item

The business object bound to the field.

Declaration

cs-api-definition
public object Item { get; set; }

Property Value

object

Label

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

Declaration

cs-api-definition
public object Label { get; set; }

Property Value

object

LabelPosition

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

Declaration

cs-api-definition
public LabelPosition LabelPosition { get; set; }

Property Value

LabelPosition

LabelTemplate

Gets or sets the label template.

Declaration

cs-api-definition
public DataTemplate LabelTemplate { get; set; }

Property Value

DataTemplate

The label template.

Mode

Gets or sets the mode.

Declaration

cs-api-definition
public RadDataFormMode Mode { get; set; }

Property Value

RadDataFormMode

Methods

GetControl()

Returns a control to display and edit the underlying data.

Declaration

cs-api-definition
protected virtual Control GetControl()

Returns

Control

GetControlBindingProperty()

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

Declaration

cs-api-definition
protected virtual DependencyProperty GetControlBindingProperty()

Returns

DependencyProperty

GetReadOnlyControl()

Returns a control to display the underlying data.

Declaration

cs-api-definition
protected virtual FrameworkElement GetReadOnlyControl()

Returns

FrameworkElement

InitializeComponents()

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

Declaration

cs-api-definition
protected virtual void InitializeComponents()

OnApplyTemplate()

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

Declaration

cs-api-definition
public override void OnApplyTemplate()

OnCreateAutomationPeer()

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

Declaration

cs-api-definition
protected override AutomationPeer OnCreateAutomationPeer()

Returns

AutomationPeer

The type-specific AutomationPeer implementation.

OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

Declaration

cs-api-definition
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)

Parameters

e

KeyboardFocusChangedEventArgs

OnInitialized(EventArgs)

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

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

OnItemPropertyChanged(DependencyPropertyChangedEventArgs)

Called when the Item property changes.

Declaration

cs-api-definition
protected virtual void OnItemPropertyChanged(DependencyPropertyChangedEventArgs e)

Parameters

e

DependencyPropertyChangedEventArgs

OnMouseLeftButtonUp(MouseButtonEventArgs)

Declaration

cs-api-definition
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)

Parameters

e

MouseButtonEventArgs

OnUnloaded(object, RoutedEventArgs)

Called when DataFormDataField gets unloaded.

Declaration

cs-api-definition
protected virtual void OnUnloaded(object sender, RoutedEventArgs e)

Parameters

sender

object

The sender.

e

RoutedEventArgs

The RoutedEventArgs instance containing the event data.

PrepareControl()

Prepares the inner control.

Declaration

cs-api-definition
protected void PrepareControl()

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()