menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class PropertyItem - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class PropertyItem

    Represents PropertyItem class

    Inheritance
    System.Object
    PropertyItem
    Implements
    System.ComponentModel.IDataErrorInfo
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    Namespace: Syncfusion.Windows.PropertyGrid
    Assembly: Syncfusion.PropertyGrid.Wpf.dll
    Syntax
    public class PropertyItem : DependencyObject, IDataErrorInfo, INotifyPropertyChanged, IDisposable

    Constructors

    PropertyItem()

    Represents PropertyItem constructor

    Declaration
    public PropertyItem()

    Fields

    CategoryValuePropertiesProperty

    Declaration
    public static readonly DependencyProperty CategoryValuePropertiesProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    EnableToolTipProperty

    Idenfities the EnableToolTip dependency property of the PropertyItem

    Declaration
    public static readonly DependencyProperty EnableToolTipProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    PropertyExpandModeProperty

    Represents depedency property PropertyExpandModeProperty used for expanding the ProperyGrid

    Declaration
    public static readonly DependencyProperty PropertyExpandModeProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    PropertyLevelProperty

    Represents DependencyProperty PropertyLevel which represents level

    Declaration
    public static readonly DependencyProperty PropertyLevelProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    SelectedObjectProperty

    Represents selectedObjectProperty dependency poroperty of PropertyGrid

    Declaration
    public static readonly DependencyProperty SelectedObjectProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    ValueProperty

    Declaration
    public static readonly DependencyProperty ValueProperty
    Field Value
    Type
    System.Windows.DependencyProperty

    Properties

    Browsable

    Gets a value indicating whether this PropertyItem is browsable.

    Declaration
    public bool Browsable { get; }
    Property Value
    Type Description
    System.Boolean

    true if browsable; otherwise, false.

    CanWrite

    Gets a value indicating whether this instance can write.

    Declaration
    public bool CanWrite { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance can write; otherwise, false.

    Category

    Gets the category.

    Declaration
    public string Category { get; }
    Property Value
    Type Description
    System.String

    The category.

    CategoryValueProperties

    Gets or sets the category value properties.

    Declaration
    public PropertyItemCollection CategoryValueProperties { get; set; }
    Property Value
    Type Description
    PropertyItemCollection

    The category value properties.

    DefaultValue

    Gets the DefaultValue

    Declaration
    public object DefaultValue { get; set; }
    Property Value
    Type
    System.Object

    Description

    Gets the description.

    Declaration
    public string Description { get; }
    Property Value
    Type Description
    System.String

    The description.

    DescriptionTemplate

    Gets or sets the template used to display the description of SelectedItem.

    Declaration
    public DataTemplate DescriptionTemplate { get; }
    Property Value
    Type
    System.Windows.DataTemplate

    DescriptionTemplateSelector

    Gets or sets the DataTemplateSelector, which allows the user can choose the custom template that is used to display the description of SelectedItem.

    Declaration
    public DataTemplateSelector DescriptionTemplateSelector { get; }
    Property Value
    Type
    System.Windows.Controls.DataTemplateSelector

    DisplayName

    Gets the display name.

    Declaration
    public string DisplayName { get; set; }
    Property Value
    Type Description
    System.String

    The display name.

    Editor

    Gets or sets the editor.

    Declaration
    public ITypeEditor Editor { get; set; }
    Property Value
    Type Description
    ITypeEditor

    The editor.

    EnableMenuButton

    Gets the EnableMenuButton

    Declaration
    public bool EnableMenuButton { get; }
    Property Value
    Type
    System.Boolean

    EnableToolTip

    Gets a value to indicate whether the PropertyItem's tool tip can be displayed when it is hovered.

    Declaration
    public bool EnableToolTip { get; }
    Property Value
    Type
    System.Boolean

    Error

    Gets an error message indicating what is wrong with this object.

    Declaration
    public string Error { get; }
    Property Value
    Type
    System.String

    IsDefaultValue

    Gets the IsDefaultValue

    Declaration
    public bool IsDefaultValue { get; }
    Property Value
    Type
    System.Boolean

    IsReadOnly

    Gets a value indicating whether this instance is read only.

    Declaration
    public bool IsReadOnly { get; }
    Property Value
    Type Description
    System.Boolean

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

    IsSelected

    Get and Set the IsSelected Property

    Declaration
    public bool IsSelected { get; set; }
    Property Value
    Type
    System.Boolean

    Item[String]

    Gets the System.String with the specified column name.

    Declaration
    public string this[string columnName] { get; }
    Parameters
    Type Name Description
    System.String columnName
    Property Value
    Type
    System.String

    Name

    Gets the name.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    The name.

    PropertyDescriptor

    Gets PropertyDescriptor which provides abstraction of a property when SelectedObject is of type dynamic, ExpandoObject or ICustomTypeDescriptor.

    Declaration
    public PropertyDescriptor PropertyDescriptor { get; }
    Property Value
    Type
    System.ComponentModel.PropertyDescriptor
    Remarks

    Use PropertyInformation when SelectedObject is not dynamic, ExpandoObject or ICustomTypeDescriptor Type.

    PropertyEditor

    Gets or sets the property editor.

    Declaration
    public object PropertyEditor { get; set; }
    Property Value
    Type Description
    System.Object

    The property editor.

    PropertyExpandMode

    Gets or sets the property information.

    Declaration
    public PropertyExpandModes PropertyExpandMode { get; set; }
    Property Value
    Type Description
    PropertyExpandModes

    The property information.

    PropertyGrid

    Gets or sets the property grid.

    Declaration
    public PropertyGrid PropertyGrid { get; set; }
    Property Value
    Type Description
    PropertyGrid

    The property grid.

    PropertyInformation

    Gets or sets the property information.

    Declaration
    public PropertyInfo PropertyInformation { get; set; }
    Property Value
    Type Description
    System.Reflection.PropertyInfo

    The property information.

    PropertyLevel

    Get and set the PropertyLevelProperty for PropertyGrid

    Declaration
    public double PropertyLevel { get; set; }
    Property Value
    Type
    System.Double

    PropertyType

    Gets the type of the property.

    Declaration
    public Type PropertyType { get; }
    Property Value
    Type Description
    System.Type

    The type of the property.

    ResetCommand

    Reset Command

    Declaration
    public DelegateCommand ResetCommand { get; set; }
    Property Value
    Type
    DelegateCommand

    SelectedObject

    Gets or sets the selected object.

    Declaration
    public object SelectedObject { get; set; }
    Property Value
    Type Description
    System.Object

    The selected object.

    Template

    Gets or sets the template.

    Declaration
    public DataTemplate Template { get; set; }
    Property Value
    Type Description
    System.Windows.DataTemplate

    The template.

    Value

    Gets or sets the value.

    Declaration
    public object Value { get; set; }
    Property Value
    Type Description
    System.Object

    The value.

    Methods

    Dispose()

    Helps to clean up the resources which is being used.

    Declaration
    public void Dispose()

    GetAttribute<T>(PropertyInfo)

    Gets the attribute.

    Declaration
    public static T GetAttribute<T>(PropertyInfo propertyInfo)
    Parameters
    Type Name Description
    System.Reflection.PropertyInfo propertyInfo

    The property info.

    Returns
    Type
    T
    Type Parameters
    Name
    T

    OnPropertyChanged(DependencyPropertyChangedEventArgs)

    Invoked while any of the property get changed

    Declaration
    protected override void OnPropertyChanged(DependencyPropertyChangedEventArgs e)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs e

    OnSelectedObjectChanged(DependencyPropertyChangedEventArgs)

    Represents protected method OnSelectedObjectChanged

    Declaration
    protected void OnSelectedObjectChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    OnValueChanged(DependencyPropertyChangedEventArgs)

    Raises the ValueChanged event.

    Declaration
    protected void OnValueChanged(DependencyPropertyChangedEventArgs args)
    Parameters
    Type Name Description
    System.Windows.DependencyPropertyChangedEventArgs args

    The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data.

    Events

    PropertyChanged

    Represent Propeety

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.IDataErrorInfo
    System.ComponentModel.INotifyPropertyChanged
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved