PropertyDefinition
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:
public class PropertyDefinition : DependencyObject, INotifyPropertyChanged, ITypeDescriptorContext, IServiceProvider
Inheritance: objectPropertyDefinition
Derived Classes:
Implements:
Constructors
Initializes a new instance of the PropertyDefinition class.
public PropertyDefinition()
Initializes a new instance of the PropertyDefinition class.
public PropertyDefinition(ItemPropertyInfo propertyInfo)
Fields
DescriptionProperty
DependencyProperty
Represents the Description dependency property.
public static readonly DependencyProperty DescriptionProperty
DisplayNameProperty
DependencyProperty
Represents the DisplayName dependency property.
public static readonly DependencyProperty DisplayNameProperty
EditorTemplateProperty
DependencyProperty
Represents the EditorTemplate dependency property.
public static readonly DependencyProperty EditorTemplateProperty
GroupNameProperty
DependencyProperty
Represents the GroupName dependency property.
public static readonly DependencyProperty GroupNameProperty
IsCurrentProperty
DependencyProperty
Represents the IsCurrent dependency property.
public static readonly DependencyProperty IsCurrentProperty
IsExpandedProperty
DependencyProperty
Represents the IsExpanded dependency property.
public static readonly DependencyProperty IsExpandedProperty
IsReadOnlyProperty
DependencyProperty
Represents the IsReadOnly dependency property.
public static readonly DependencyProperty IsReadOnlyProperty
IsSelectedProperty
DependencyProperty
Represents the IsSelected dependency property.
public static readonly DependencyProperty IsSelectedProperty
LabelStyleProperty
DependencyProperty
Represents the LabelStyle dependency property.
public static readonly DependencyProperty LabelStyleProperty
OrderIndexProperty
DependencyProperty
Represents the OrderIndex dependency property.
public static readonly DependencyProperty OrderIndexProperty
VisibilityProperty
DependencyProperty
Represents the Visibility dependency property.
public static readonly DependencyProperty VisibilityProperty
Properties
Gets the auto generated path.
public string AutoGeneratedPath { get; }
Binding
BindingBase
Gets or sets the binding which points to the data member to display/edit in the field.
public BindingBase Binding { get; set; }
The data member binding.
Gets the container representing this TypeDescriptor request.
public IContainer Container { get; }
Implements:
Gets or sets the description of a property.
public string Description { get; set; }
Gets or sets the DisplayName.
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.
public DataTemplate EditorTemplate { get; set; }
Gets or sets the group name used to organize properties in categories.
public string GroupName { get; set; }
Gets or sets a value indicating whether this property definition has nested property definitions.
public bool HasNestedProperties { get; }
Gets the object that is connected with this type descriptor request.
public object Instance { get; }
Implements:
Gets or sets a value that indicates whether the property definition is expanded.
public bool IsExpanded { get; set; }
The is expanded.
Gets or sets a value indicating whether this instance is filtered.
public virtual bool IsFiltered { get; }
true if this instance is filtered; otherwise, false.
Gets or sets a value indicating whether this instance is read only.
public bool IsReadOnly { get; set; }
true if this instance is read only; otherwise, false.
Gets a value indicating whether PropertyDefinition is read-only.
public bool IsReadOnlyComposite { get; }
The is read only composite.
Gets or sets the selected state of a property definition.
public bool IsSelected { get; set; }
LabelStyle
Style
Get or set a Style targeting TextBlock is applied to the TextBlock label of the PropertyGridField.
public Style LabelStyle { get; set; }
Gets or sets the collection of nested properties.
public PropertyDefinitionCollection NestedProperties { get; }
Gets or sets an index that describes PropertyDefinitions display order.
public int OrderIndex { get; set; }
The index of the order.
Gets or sets the parent property of this property definition.
public PropertyDefinition ParentProperty { get; set; }
Gets the PropertyDescriptor that is associated with the given context item.
public PropertyDescriptor PropertyDescriptor { get; }
Implements:
Gets the string used to filter properties with the search-as-you-type box.
public string SearchString { get; }
SourceProperty
ItemPropertyInfo
Gets the property's ItemPropertyInfo.
public ItemPropertyInfo SourceProperty { get; }
Visibility
Visibility
Gets or sets the visibility.
public Visibility Visibility { get; set; }
The visibility.
Methods
Raises the ComponentChanged event.
public void OnComponentChanged()
Implements:
Raises the ComponentChanging event.
public bool OnComponentChanging()
true if this object can be changed; otherwise, false.
Implements:
Called when the Description property is changed.
protected static void OnDescriptionChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
The sender.
argsDependencyPropertyChangedEventArgsThe DependencyPropertyChangedEventArgs instance containing the event data.
Called when the EditorTemplate property is changed.
protected static void OnEditorTemplateChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
The sender.
argsDependencyPropertyChangedEventArgsThe DependencyPropertyChangedEventArgs instance containing the event data.
Called when the GroupName property is changed.
protected static void OnGroupNamePropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
The sender.
argsDependencyPropertyChangedEventArgsThe DependencyPropertyChangedEventArgs instance containing the event data.
Called when the IsExpanded property gets its value changed.
protected static void OnIsExpandedPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
The sender.
argsDependencyPropertyChangedEventArgsThe DependencyPropertyChangedEventArgs instance containing the event data.
Called when the IsReadOnly DependencyProperty gets changed.
protected static void OnIsReadOnlyPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
The sender.
argsDependencyPropertyChangedEventArgsThe DependencyPropertyChangedEventArgs instance containing the event data.
Called when the OrderIndex property is changed.
protected static void OnOrderIndexChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
The sender.
argsDependencyPropertyChangedEventArgsThe DependencyPropertyChangedEventArgs instance containing the event data.
Called when a property value gets changed.
protected void OnPropertyChanged(string propertyName)
Name of the property.
Called when the Visibility property is changed.
protected static void OnVisibilityPropertyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
The sender.
argsDependencyPropertyChangedEventArgsThe DependencyPropertyChangedEventArgs instance containing the event data.
Events
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged
Implements: