AutomationPeerExtensions Class
Provides extension methods for the automation peers.
public static class AutomationPeerExtensions
- Inheritance:
- object object
Methods
GetItemContainerPeerMethodResult<T>(ItemAutomationPeer, Func<AutomationPeer, T>)
Returns the result from a method on an ItemAutomationPeer.
public static T GetItemContainerPeerMethodResult<T>(this ItemAutomationPeer itemPeer, Func<AutomationPeer, T> getResultFunc)
- Type Parameters:
-
T
-The result type.
Parameter | Type | Description |
---|---|---|
itemPeer | ItemAutomationPeer | The ItemAutomationPeer to examine. |
getResultFunc | Func<AutomationPeer, T> | The function that returns a result. |
Returns
- T:
The method result.
GetItemContainerPeerMethodStringResult(ItemAutomationPeer, Func<AutomationPeer, string>)
Returns the string result from a method on an ItemAutomationPeer.
public static string GetItemContainerPeerMethodStringResult(this ItemAutomationPeer itemPeer, Func<AutomationPeer, string> getResultFunc)
Parameter | Type | Description |
---|---|---|
itemPeer | ItemAutomationPeer | The ItemAutomationPeer to examine. |
getResultFunc | Func<AutomationPeer, string> | The function that returns a result. |
Returns
- string:
The string method result.
GetStringPropertyValue(UIElementAutomationPeer, DependencyProperty)
Returns the string result of a property value on a UIElementAutomationPeer's owner.
public static string GetStringPropertyValue(this UIElementAutomationPeer elementPeer, DependencyProperty property)
Parameter | Type | Description |
---|---|---|
elementPeer | UIElementAutomationPeer | The UIElementAutomationPeer to examine. |
property | DependencyProperty | The dependency property. |
Returns
- string:
The string result.