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

Contains information about a property. Used for declarative definition of item properties displayed by RadPropertyGrid.

Definition

Namespace:Telerik.Windows.Controls.Data.PropertyGrid

Assembly:Telerik.Windows.Controls.Data.dll

Syntax:

C#
public class PropertyDefinition : DependencyObject, INotifyPropertyChanged, ITypeDescriptorContext, IServiceProvider

Inheritance: objectPropertyDefinition

Derived Classes: LookupPropertyDefinition

Implements: INotifyPropertyChangedIServiceProviderITypeDescriptorContext

Constructors

Initializes a new instance of the PropertyDefinition class.

C#
public PropertyDefinition()

Initializes a new instance of the PropertyDefinition class.

C#
public PropertyDefinition(ItemPropertyInfo propertyInfo)
Parameters:propertyInfoItemPropertyInfo

Fields

DescriptionProperty

DependencyProperty

Represents the Description dependency property.

C#
public static readonly DependencyProperty DescriptionProperty

DisplayNameProperty

DependencyProperty

Represents the DisplayName dependency property.

C#
public static readonly DependencyProperty DisplayNameProperty

EditorTemplateProperty

DependencyProperty

Represents the EditorTemplate dependency property.

C#
public static readonly DependencyProperty EditorTemplateProperty

GroupNameProperty

DependencyProperty

Represents the GroupName dependency property.

C#
public static readonly DependencyProperty GroupNameProperty

IsCurrentProperty

DependencyProperty

Represents the IsCurrent dependency property.

C#
public static readonly DependencyProperty IsCurrentProperty

IsExpandedProperty

DependencyProperty

Represents the IsExpanded dependency property.

C#
public static readonly DependencyProperty IsExpandedProperty

IsReadOnlyProperty

DependencyProperty

Represents the IsReadOnly dependency property.

C#
public static readonly DependencyProperty IsReadOnlyProperty

IsSelectedProperty

DependencyProperty

Represents the IsSelected dependency property.

C#
public static readonly DependencyProperty IsSelectedProperty

LabelStyleProperty

DependencyProperty

Represents the LabelStyle dependency property.

C#
public static readonly DependencyProperty LabelStyleProperty

OrderIndexProperty

DependencyProperty

Represents the OrderIndex dependency property.

C#
public static readonly DependencyProperty OrderIndexProperty

VisibilityProperty

DependencyProperty

Represents the Visibility dependency property.

C#
public static readonly DependencyProperty VisibilityProperty

Properties

Gets the auto generated path.

C#
public string AutoGeneratedPath { get; }

Binding

BindingBase

Gets or sets the binding which points to the data member to display/edit in the field.

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

The data member binding.

Gets the container representing this TypeDescriptor request.

C#
public IContainer Container { get; }

Implements: ITypeDescriptorContext.Container

Gets or sets the description of a property.

C#
public string Description { get; set; }

Gets or sets the DisplayName.

C#
public string DisplayName { get; set; }

EditorTemplate

DataTemplate

Gets or sets a dataTemplate for the editor of the property. If left unset, a default editor will be generated.

C#
public DataTemplate EditorTemplate { get; set; }

Gets or sets the group name used to organize properties in categories.

C#
public string GroupName { get; set; }

Gets or sets a value indicating whether this property definition has nested property definitions.

C#
public bool HasNestedProperties { get; }

Gets the object that is connected with this type descriptor request.

C#
public object Instance { get; }

Implements: ITypeDescriptorContext.Instance

Gets the current state of a property definition.

C#
public bool IsCurrent { get; }

Gets or sets a value that indicates whether the property definition is expanded.

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

The is expanded.

Gets or sets a value indicating whether this instance is filtered.

C#
public virtual bool IsFiltered { get; }
Property Value:

true if this instance is filtered; otherwise, false.

Gets or sets a value indicating whether this instance is read only.

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

true if this instance is read only; otherwise, false.

Gets a value indicating whether PropertyDefinition is read-only.

C#
public bool IsReadOnlyComposite { get; }
Property Value:

The is read only composite.

Gets or sets the selected state of a property definition.

C#
public bool IsSelected { get; set; }

Get or set a Style targeting TextBlock is applied to the TextBlock label of the PropertyGridField.

C#
public Style LabelStyle { get; set; }

Gets or sets the collection of nested properties.

C#
public PropertyDefinitionCollection NestedProperties { get; }

Gets or sets an index that describes PropertyDefinitions display order.

C#
public int OrderIndex { get; set; }
Property Value:

The index of the order.

Gets or sets the parent property of this property definition.

C#
public PropertyDefinition ParentProperty { get; set; }

Gets the PropertyDescriptor that is associated with the given context item.

C#
public PropertyDescriptor PropertyDescriptor { get; }

Implements: ITypeDescriptorContext.PropertyDescriptor

Gets the string used to filter properties with the search-as-you-type box.

C#
public string SearchString { get; }

SourceProperty

ItemPropertyInfo

Gets the property's ItemPropertyInfo.

C#
public ItemPropertyInfo SourceProperty { get; }

Gets or sets the value.

C#
public object Value { get; }
Property Value:

The value.

Visibility

Visibility

Gets or sets the visibility.

C#
public Visibility Visibility { get; set; }
Property Value:

The visibility.

Methods

Gets the service object of the specified type(Inherited from IServiceProvider).

C#
public object GetService(Type serviceType)
Parameters:serviceTypeTypeReturns:

object

Implements: IServiceProvider.GetService(Type)

Raises the ComponentChanged event.

C#
public void OnComponentChanged()

Implements: ITypeDescriptorContext.OnComponentChanged()

Raises the ComponentChanging event.

C#
public bool OnComponentChanging()
Returns:

bool

true if this object can be changed; otherwise, false.

Implements: ITypeDescriptorContext.OnComponentChanging()

Called when the Description property is changed.

C#
protected static void OnDescriptionChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters:senderDependencyObject

The sender.

argsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when the EditorTemplate property is changed.

C#
protected static void OnEditorTemplateChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters:senderDependencyObject

The sender.

argsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when the GroupName property is changed.

C#
protected static void OnGroupNamePropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters:senderDependencyObject

The sender.

argsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when the IsExpanded property gets its value changed.

C#
protected static void OnIsExpandedPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters:senderDependencyObject

The sender.

argsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when the IsReadOnly DependencyProperty gets changed.

C#
protected static void OnIsReadOnlyPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters:senderDependencyObject

The sender.

argsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when the OrderIndex property is changed.

C#
protected static void OnOrderIndexChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters:senderDependencyObject

The sender.

argsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Called when a property value gets changed.

C#
protected void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

Name of the property.

Called when the Visibility property is changed.

C#
protected static void OnVisibilityPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters:senderDependencyObject

The sender.

argsDependencyPropertyChangedEventArgs

The DependencyPropertyChangedEventArgs instance containing the event data.

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged