Version

RequeryEditorDefinition Method

Forces the PropertyGridPropertyItem to inspect the PropertyGridEditorDefinition assigned to it and re-evaluate the PropertyGridEditorDefinition.TemplateSelector, EditTemplate and ReadOnlyTemplate properties and (if necessary) update the DataTemplate used to display/edit the property value.
Syntax
'Declaration
 
Public Sub RequeryEditorDefinition() 
public void RequeryEditorDefinition()
Remarks

Note: This method can be helpful if you want to choose a different DataTemplate to display/edit a property's value based on the value of another property. For example, if property 'A' requires a different DataTemplate for displaying/editing its value depending on the value of property 'B', you can call this method on the PropertyGridPropertyItem for property 'A' when the value of property 'B' changes. (Note: You can listen to the PropertyItemValueChanged event to be notified when the value of a property changes, and you can find the PropertyGridPropertyItem associated with a specific property by calling XamPropertyGrid.FindPropertyItem)

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