WPF

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BaseTypeEditor

    Show / Hide Table of Contents

    Class BaseTypeEditor

    Represents an abstract base class for a PropertyEditor class where the property values are displayed using the appropriate editor.

    Inheritance
    System.Object
    BaseTypeEditor
    BooleanComboEditor
    BrushSelectorEditor
    CheckBoxEditor
    DateTimeEditor
    DoubleTextBoxEditor
    EnumComboEditor
    FontComboEditor
    IntegerTextBoxEditor
    ITypeItemsSourceControl
    MaskEditor
    TextBoxEditor
    TimeSpanEditor
    Implements
    ITypeEditor
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.PropertyGrid
    Assembly: Syncfusion.PropertyGrid.Wpf.dll
    Syntax
    public abstract class BaseTypeEditor : ITypeEditor

    Constructors

    BaseTypeEditor()

    Declaration
    protected BaseTypeEditor()

    Methods

    Attach(PropertyViewItem, PropertyItem)

    Attaches the appropriate property of editor to the PropertyItem

    Declaration
    public abstract void Attach(PropertyViewItem property, PropertyItem info)
    Parameters
    Type Name Description
    PropertyViewItem property

    PropertyViewItem of the Editor

    PropertyItem info

    PropertyItem of the Editor

    Create(PropertyDescriptor)

    Creates and initializes a new instance of the custom editor. This method will be called for properties of type dynamic, ExpandoObject or ICustomTypeDescriptor.

    Declaration
    public abstract object Create(PropertyDescriptor PropertyDescriptor)
    Parameters
    Type Name Description
    System.ComponentModel.PropertyDescriptor PropertyDescriptor

    The PropertyDescriptor

    Returns
    Type Description
    System.Object

    The Editor

    Remarks

    Create(PropertyInfo) will be called when SelectedObject is not dynamic, ExpandoObject or ICustomTypeDescriptor Type.

    Create(PropertyInfo)

    Creates and Initializes the Editor

    Declaration
    public abstract object Create(PropertyInfo PropertyInfo)
    Parameters
    Type Name Description
    System.Reflection.PropertyInfo PropertyInfo

    Information about the Property

    Returns
    Type Description
    System.Object

    Returns the editor

    CreatePropertyInfoBinding(PropertyItem, Control)

    Create binding for Value property of PropertyItem

    Declaration
    protected Binding CreatePropertyInfoBinding(PropertyItem info, Control control)
    Parameters
    Type Name Description
    PropertyItem info

    Information about the PropertyItem

    System.Windows.Controls.Control control

    Control to update the property information

    Returns
    Type Description
    System.Windows.Data.Binding

    Returns binding value

    Detach(PropertyViewItem)

    Detaches (releases) the editor that was attached with the property.

    Declaration
    public abstract void Detach(PropertyViewItem property)
    Parameters
    Type Name Description
    PropertyViewItem property

    ShouldPropertyGridTryToHandleKeyDown(Key)

    Overrides the handling of keydown event. If the method returns true, PropertyGrid handles the KeyDown event and focus will be moved to next focusable editor, otherwise the event will not handle by the PropertyGrid.

    Declaration
    public virtual bool ShouldPropertyGridTryToHandleKeyDown(Key key)
    Parameters
    Type Name Description
    System.Windows.Input.Key key

    A System.Windows.Input.KeyEventArgs object.

    Returns
    Type Description
    System.Boolean

    True if the property grid should be allowed to handle keys; false otherwise.

    Implements

    ITypeEditor
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved