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


    EditorTemplateDefinition Class
    Allows an editor definition to be specified.
    Syntax
    'Declaration
     
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public Class EditorTemplateDefinition 
       Inherits EditorDefinitionBase
     
    'Usage
     
    Dim instance As EditorTemplateDefinition
    Example
    Adding an editor definition to a property grid:
    <xctk:PropertyGrid>
       <xctk:PropertyGrid.EditorDefinitions>
          <xctk:EditorTemplateDefinition ... />
       </xctk:PropertyGrid.EditorDefinitions>
    </xctk:PropertyGrid>
    Create the editor of the FirstName and LastName properties:
    <xctk:EditorTemplateDefinition TargetProperties="FirstName,LastName" ... />
    Creates the editor of all properties of type "int".
    <xctk:EditorTemplateDefinition TargetProperties="{x:Type s:Int32}" ... />
    Creates the editor of all properties named "Age" and/or of type "int":
    <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

    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also