Using WPF objects, methods, and properties

When accessing the internal properties and methods of WPF objects, it is important to know which property to use to access the object that contains the information you want to set or retrieve.

  • AutomationElement property. Returns the object that gives access to the set of standard properties that expose information about the Automation Element.

  • AutomationPattern property. Returns the object that gives access to the specific instance of a Control Pattern. For details on the methods and properties that are accessible through the AutomationPattern property, see the .NET Framework Developer Center of the Microsoft Developer Network library.

  • Object property. Returns the object that gives access to properties specific to the actual run-time UI object, as defined by the developer.

Many of the properties and methods accessible through the AutomationElement and AutomationPattern properties contain the same information as the properties and methods accessible through the Object property. However, information available through UI Automation that is accessed through the Object property lacks the standardization provided by UI Automation.

Custom properties designed by the developer are accessible only through the Object property.