Version

PropertyGridTemplateSelectorContext Class

An instance of this class is passed to the SelectTemplate method of the DataTemplateSelector specified in a PropertyGridEditorDefinition. It exposes a property of type PropertyGridPropertyItem that the SelectTemplate method can use to determine which DataTemplate instance to return. In addition, it exposes 2 more properties that reflect the Edit DataTemplate and ReadOnly DataTemplate (if any) specified in the EditorDefinition associated with the property. The SelectTemplate method is free to return one of these DataTemplate instances as the selected template, or it can can choose any other DataTemplate instance. If instead it returns null, the control will use the built-in editor for the property's type to display/edit it's value.
Syntax
'Declaration
 
Public NotInheritable Class PropertyGridTemplateSelectorContext 
public sealed class PropertyGridTemplateSelectorContext 
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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