Class DataFormDataField
A field used to display and edit data in RadDataForm.
Inheritance
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Data.dll
Syntax
[TelerikToolboxCategory("Input")]
public class DataFormDataField : ContentControl, IThemable
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
System.Windows.DependencyProperty
|
IsEditingProperty
Gets whether the user can edit the values in the control.
Declaration
public static readonly DependencyProperty IsEditingProperty
Field Value
System.Windows.DependencyProperty
|
IsReadOnlyProperty
Identifies the IsReadOnly dependency property.
Declaration
public static readonly DependencyProperty IsReadOnlyProperty
Field Value
System.Windows.DependencyProperty
|
ItemProperty
Represents the Item dependency property.
Declaration
public static readonly DependencyProperty ItemProperty
Field Value
System.Windows.DependencyProperty
|
LabelPositionProperty
Represents the LabelPosition dependency property.
Declaration
public static readonly DependencyProperty LabelPositionProperty
Field Value
System.Windows.DependencyProperty
|
LabelProperty
Identifies the Label dependency property.
Declaration
public static readonly DependencyProperty LabelProperty
Field Value
System.Windows.DependencyProperty
|
LabelTemplateProperty
Represent the LabelTemplate dependency property.
Declaration
public static readonly DependencyProperty LabelTemplateProperty
Field Value
System.Windows.DependencyProperty
|
ModeProperty
Identifies the Mode dependency property.
Declaration
public static readonly DependencyProperty ModeProperty
Field Value
System.Windows.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
System.Windows.Data.Binding
The data member binding. |
Description
Gets or sets the text displayed in the description viewer.
Declaration
public string Description { get; set; }
Property Value
System.String
|
IsEditing
Gets whether the user can edit the values in the control.
Declaration
public bool IsEditing { get; set; }
Property Value
System.Boolean
|
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
System.Boolean
|
Item
The business object bound to the field.
Declaration
public object Item { get; set; }
Property Value
System.Object
|
Label
Gets or sets the content of the label displayed for this control.
Declaration
public object Label { get; set; }
Property Value
System.Object
|
LabelPosition
Gets or sets the position of labels in data fields in RadDataForm.
Declaration
public LabelPosition LabelPosition { get; set; }
Property Value
LabelPosition
|
LabelTemplate
Gets or sets the label template.
Declaration
public DataTemplate LabelTemplate { get; set; }
Property Value
System.Windows.DataTemplate
The label template. |
Mode
Gets or sets the mode.
Declaration
public RadDataFormMode Mode { get; set; }
Property Value
RadDataFormMode
|
Methods
GetControl()
Returns a control to display and edit the underlying data.
Declaration
protected virtual Control GetControl()
Returns
System.Windows.Controls.Control
|
GetControlBindingProperty()
Returns the dependency property of the control to be bound to the underlying data.
Declaration
protected virtual DependencyProperty GetControlBindingProperty()
Returns
System.Windows.DependencyProperty
|
GetReadOnlyControl()
Returns a control to display the underlying data.
Declaration
protected virtual FrameworkElement GetReadOnlyControl()
Returns
System.Windows.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 System.Windows.FrameworkElement.ApplyTemplate.
Declaration
public override void OnApplyTemplate()
OnCreateAutomationPeer()
Returns class-specific System.Windows.Automation.Peers.AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
System.Windows.Automation.Peers.AutomationPeer
The type-specific System.Windows.Automation.Peers.AutomationPeer implementation. |
OnItemPropertyChanged(DependencyPropertyChangedEventArgs)
Called when the Item property changes.
Declaration
protected virtual void OnItemPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters
System.Windows.DependencyPropertyChangedEventArgs
e
|
OnUnloaded(Object, RoutedEventArgs)
Called when DataFormDataField gets unloaded.
Declaration
protected virtual void OnUnloaded(object sender, RoutedEventArgs e)
Parameters
System.Object
sender
The sender. |
System.Windows.RoutedEventArgs
e
The System.Windows.RoutedEventArgs instance containing the event data. |
PrepareControl()
Prepares the inner control.
Declaration
protected void PrepareControl()
ResetTheme()
Resets the theme.
Declaration
public void ResetTheme()