skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class DataFormDataField

A field used to display and edit data in RadDataForm.

Inheritance
System.Object
DataFormDataField
CardViewDataFormDataField
DataFormCheckBoxField
DataFormComboBoxField
DataFormDateField
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.

OnGotKeyboardFocus(KeyboardFocusChangedEventArgs)

Declaration
protected override void OnGotKeyboardFocus(KeyboardFocusChangedEventArgs e)
Parameters
System.Windows.Input.KeyboardFocusChangedEventArgs e

OnInitialized(EventArgs)

Raises the System.Windows.FrameworkElement.Initialized event. This method is invoked whenever System.Windows.FrameworkElement.IsInitialized is set to true internally.

Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System.EventArgs e

The System.Windows.RoutedEventArgs that contains the event data.

OnItemPropertyChanged(DependencyPropertyChangedEventArgs)

Called when the Item property changes.

Declaration
protected virtual void OnItemPropertyChanged(DependencyPropertyChangedEventArgs e)
Parameters
System.Windows.DependencyPropertyChangedEventArgs e

OnMouseLeftButtonUp(MouseButtonEventArgs)

Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
System.Windows.Input.MouseButtonEventArgs 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()

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.