ClassDataFormDataField
A field used to display and edit data in RadDataForm.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Data.dll
Syntax:
[TelerikToolboxCategory("Input")]
public class DataFormDataField : ContentControl
Inheritance: objectDataFormDataField
Derived Classes:
Constructors
DataFormDataField()
Initializes a new instance of the DataFormDataField class.
Declaration
public DataFormDataField()
Fields
DescriptionProperty
Identifies the Description dependency property.
Declaration
public static readonly DependencyProperty DescriptionProperty
Field Value
DependencyProperty
IsEditingProperty
Gets whether the user can edit the values in the control.
Declaration
public static readonly DependencyProperty IsEditingProperty
Field Value
DependencyProperty
IsReadOnlyProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
DependencyProperty
ItemProperty
Represents the Item dependency property.
Declaration
public static readonly DependencyProperty ItemProperty
Field Value
DependencyProperty
LabelPositionProperty
Represents the LabelPosition dependency property.
Declaration
public static readonly DependencyProperty LabelPositionProperty
Field Value
DependencyProperty
LabelProperty
Identifies the Label dependency property.
Declaration
public static readonly DependencyProperty LabelProperty
Field Value
DependencyProperty
LabelTemplateProperty
Represent the LabelTemplate dependency property.
Declaration
public static readonly DependencyProperty LabelTemplateProperty
Field Value
DependencyProperty
ModeProperty
Identifies the Mode dependency property.
Declaration
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
public Binding DataMemberBinding { get; set; }
Property Value
Binding
The data member binding.
Description
Gets or sets the text displayed in the description viewer.
IsEditing
Gets whether the user can edit the values in the control.
IsReadOnly
Gets or sets a value that indicates whether the user can edit the values in the control.
Item
The business object bound to the field.
Label
Gets or sets the content of the label displayed for this control.
LabelPosition
Gets or sets the position of labels in data fields in RadDataForm.
Declaration
public LabelPosition LabelPosition { get; set; }
Property Value
LabelTemplate
Gets or sets the label template.
Declaration
public DataTemplate LabelTemplate { get; set; }
Property Value
DataTemplate
The label template.
Mode
Gets or sets the mode.
Declaration
public RadDataFormMode Mode { get; set; }
Property Value
Methods
GetControl()
Returns a control to display and edit the underlying data.
Declaration
protected virtual Control GetControl()
Returns
Control
GetControlBindingProperty()
Returns the dependency property of the control to be bound to the underlying data.
Declaration
protected virtual DependencyProperty GetControlBindingProperty()
Returns
DependencyProperty
GetReadOnlyControl()
Returns a control to display the underlying data.
Declaration
protected virtual FrameworkElement GetReadOnlyControl()
Returns
FrameworkElement
InitializeComponents()
Handles the initialization of the child components after the template of this one is applied.
Declaration
protected virtual void InitializeComponents()
OnApplyTemplate()
When overridden in a derived class, is invoked whenever application code or internal processes call .
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
AutomationPeer
The type-specific AutomationPeer implementation.
OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)
Declaration
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
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnItemPropertyChanged(DependencyPropertyChangedEventArgs)
Called when the Item property changes.
Declaration
protected virtual void OnItemPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters
e
DependencyPropertyChangedEventArgs
OnMouseLeftButtonUp(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
e
MouseButtonEventArgs
OnUnloaded(object, RoutedEventArgs)
Called when DataFormDataField gets unloaded.
Declaration
protected virtual void OnUnloaded(object sender, RoutedEventArgs e)
Parameters
sender
The sender.
e
RoutedEventArgs
The RoutedEventArgs instance containing the event data.
PrepareControl()
Prepares the inner control.
Declaration
protected void PrepareControl()