DataFormDataField
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
Initializes a new instance of the DataFormDataField class.
public DataFormDataField()
Fields
DescriptionProperty
DependencyProperty
Identifies the Description dependency property.
public static readonly DependencyProperty DescriptionProperty
IsEditingProperty
DependencyProperty
Gets whether the user can edit the values in the control.
public static readonly DependencyProperty IsEditingProperty
IsReadOnlyProperty
DependencyProperty
Identifies the IsReadOnly dependency property.
public static readonly DependencyProperty IsReadOnlyProperty
ItemProperty
DependencyProperty
Represents the Item dependency property.
public static readonly DependencyProperty ItemProperty
LabelPositionProperty
DependencyProperty
Represents the LabelPosition dependency property.
public static readonly DependencyProperty LabelPositionProperty
LabelProperty
DependencyProperty
Identifies the Label dependency property.
public static readonly DependencyProperty LabelProperty
LabelTemplateProperty
DependencyProperty
Represent the LabelTemplate dependency property.
public static readonly DependencyProperty LabelTemplateProperty
ModeProperty
DependencyProperty
Identifies the Mode dependency property.
public static readonly DependencyProperty ModeProperty
Properties
DataMemberBinding
Binding
Gets or sets the binding which points to the data member to display/edit in the field.
public Binding DataMemberBinding { get; set; }
The data member binding.
Gets or sets the text displayed in the description viewer.
public string Description { get; set; }
Gets whether the user can edit the values in the control.
public bool IsEditing { get; set; }
Gets or sets a value that indicates whether the user can edit the values in the control.
public bool IsReadOnly { get; set; }
Gets or sets the content of the label displayed for this control.
public object Label { get; set; }
Gets or sets the position of labels in data fields in RadDataForm.
public LabelPosition LabelPosition { get; set; }
LabelTemplate
DataTemplate
Gets or sets the label template.
public DataTemplate LabelTemplate { get; set; }
The label template.
Gets or sets the mode.
public RadDataFormMode Mode { get; set; }
Methods
GetControl()
Control
Returns a control to display and edit the underlying data.
protected virtual Control GetControl()
Control
GetControlBindingProperty()
DependencyProperty
Returns the dependency property of the control to be bound to the underlying data.
protected virtual DependencyProperty GetControlBindingProperty()
DependencyProperty
GetReadOnlyControl()
FrameworkElement
Returns a control to display the underlying data.
protected virtual FrameworkElement GetReadOnlyControl()
FrameworkElement
Handles the initialization of the child components after the template of this one is applied.
protected virtual void InitializeComponents()
When overridden in a derived class, is invoked whenever application code or internal processes call .
public override void OnApplyTemplate()
OnCreateAutomationPeer()
AutomationPeer
Returns class-specific AutomationPeer implementations for the Windows Presentation Foundation (WPF) infrastructure.
protected override AutomationPeer OnCreateAutomationPeer()
AutomationPeer
The type-specific AutomationPeer implementation.
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Called when the Item property changes.
protected virtual void OnItemPropertyChanged(DependencyPropertyChangedEventArgs e)
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Called when DataFormDataField gets unloaded.
protected virtual void OnUnloaded(object sender, RoutedEventArgs e)
The sender.
eRoutedEventArgsThe RoutedEventArgs instance containing the event data.
Prepares the inner control.
protected void PrepareControl()
Resets the theme.
public void ResetTheme()