New to Telerik UI for WPFStart a free 30-day trial

Describes a field that wraps a data element from a user data source.

Definition

Namespace:Telerik.Windows.Data

Assembly:Telerik.Windows.Data.dll

Syntax:

C#
[Obsolete("This class is obsolete!")]
public class FieldDescriptor : IDataFieldDescriptor, IFieldDescriptor

Inheritance: objectFieldDescriptor

Implements: IDataFieldDescriptorIFieldDescriptor

Constructors

C#
public FieldDescriptor()

Properties

Gets or sets the string that formats the data contained in the fields being described.

C#
public string DataFormatString { get; set; }
Property Value:

The string that formats the data contained in the fields being described.

Implements: IDataFieldDescriptor.DataFormatString

Gets or sets the binding which points to the data member to display in the cells of the FieldDescriptor.

C#
public Binding DataMemberBinding { get; set; }
Property Value:

The display member binding.

Implements: IDataFieldDescriptor.DataMemberBinding

Gets or sets the data type of the fields being described.

C#
public Type DataType { get; set; }
Property Value:

The data type of the fields being described.

Implements: IDataFieldDescriptor.DataType

Gets or sets a value indicating whether the descriptor is automatically generated.

C#
public bool IsAutoGenerated { get; set; }
Property Value:

True if the descriptor is automatically generated; otherwise, false.

Implements: IDataFieldDescriptor.IsAutoGenerated

Gets or sets a value indicating whether this instance is data bound.

C#
public bool IsDataBound { get; set; }
Property Value:

True if this instance is data bound; otherwise, false.

Gets or sets a value indicating whether the descriptor is read-only.

C#
public bool IsReadOnly { get; set; }
Property Value:

True if the descriptor is read-only; otherwise, false.

Implements: IFieldDescriptor.IsReadOnly

Gets or sets a value indicating whether the descriptor is visible in a user interface.

C#
public bool IsVisible { get; set; }
Property Value:

True if the descriptor is visible in a user interface; otherwise, false.

Implements: IDataFieldDescriptor.IsVisible

Gets the type of the item that the field belongs to.

C#
public Type ItemType { get; }
Property Value:

The type of the item.

Implements: IDataFieldDescriptor.ItemType

Gets or sets the unique name of the field descriptor.

C#
public string UniqueName { get; set; }
Property Value:

The unique name of the field descriptor..

Implements: IFieldDescriptor.UniqueName

Methods

Determines whether the data represented by the field descriptor can be sorted.

C#
public bool CanGroup()
Returns:

bool

true if the data represented by the field descriptor can be sorted; otherwise, false.

Implements: IDataFieldDescriptor.CanGroup()

Determines whether the data represented by the field descriptor can be sorted.

C#
public bool CanSort()
Returns:

bool

true if the data represented by the field descriptor can be sorted; otherwise, false.

Implements: IDataFieldDescriptor.CanSort()

CreateField()

ContentControl

Creates a field described by the descriptor.

C#
public virtual ContentControl CreateField()
Returns:

ContentControl

Implements: IFieldDescriptor.CreateField()