Xceed Toolkit Plus for WPF v5.1 Documentation
Xceed.Wpf.Toolkit Assembly / Xceed.Wpf.Toolkit.PropertyGrid Namespace / EditorTemplateDefinition Class
Example


In This Topic
    EditorTemplateDefinition Class
    In This Topic
    Allows an editor definition to be specified.
    Object Model
    EditorTemplateDefinition ClassPropertyDefinitionCollection ClassPropertyDefinition Class
    Syntax
    'Declaration
     
    
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class EditorTemplateDefinition 
       Inherits EditorDefinitionBase
    'Usage
     
    
    Dim instance As EditorTemplateDefinition
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public class EditorTemplateDefinition : EditorDefinitionBase 
    Example
    Adding an editor definition to a property grid:Create the editor of the FirstName and LastName properties:Creates the editor of all properties of type "int".Creates the editor of all properties named "Age" and/or of type "int":
    <xctk:PropertyGrid>
       <xctk:PropertyGrid.EditorDefinitions>
          <xctk:EditorTemplateDefinition ... />
       </xctk:PropertyGrid.EditorDefinitions>
    </xctk:PropertyGrid>
    <xctk:EditorTemplateDefinition TargetProperties="FirstName,LastName" ... />
    <xctk:EditorTemplateDefinition TargetProperties="{x:Type s:Int32}" ... />
    <xctk:EditorTemplateDefinition  ... >
       <xctk:EditorTemplateDefinition.TargetProperties>
          <s:String>Age</s:String>
          <xctk:TargetPropertyType Type="{x:Type s:Int32}" />
       </xctk:EditorTemplateDefinition.TargetProperties>
    </xctk:EditorTemplateDefinition>
    Inheritance Hierarchy

    System.Object
       System.Windows.Threading.DispatcherObject
          System.Windows.DependencyObject
             Xceed.Wpf.Toolkit.PropertyGrid.DefinitionBase
                Xceed.Wpf.Toolkit.PropertyGrid.PropertyDefinitionBase
                   Xceed.Wpf.Toolkit.PropertyGrid.EditorDefinitionBase
                      Xceed.Wpf.Toolkit.PropertyGrid.EditorTemplateDefinition

    Public Constructors
    Public Fields
     NameDescription
    Public Fieldstatic (Shared in Visual Basic)  
    Top
    Public Properties
     NameDescription
    Public Property (Inherited from System.Windows.DependencyObject)
    Public Property (Inherited from System.Windows.Threading.DispatcherObject)
    Public Property  
    Public Property (Inherited from System.Windows.DependencyObject)
    Public PropertyGets or sets the Collection of PropertyDefinition to specify which sub-PropertyItems should be shown in the PropertyGrid. (Inherited from Xceed.Wpf.Toolkit.PropertyGrid.PropertyDefinitionBase)
    Public Property (Inherited from Xceed.Wpf.Toolkit.PropertyGrid.PropertyDefinitionBase)
    Top
    Public Methods
    Protected Methods
    Extension Methods
     NameDescription
    Public Extension MethodFinds the logical ancenster
    Public Extension Method
    Public Extension MethodFind the logical children.
    Public Extension MethodFinds the visual ancestor.
    Public Extension MethodFinds the visual children.
    Public Extension MethodFinds the visual tree root.
    Public Extension MethodOverloaded. 
    Top
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Framework: net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also