ItemsControlAutomationPeer.FindItemByProperty method

Retrieves an element by the specified property value.

Syntax


public IRawElementProviderSimple FindItemByProperty(
  IRawElementProviderSimple startAfter, 
  AutomationProperty automationProperty, 
  object value
)

Parameters

startAfter

Type: IRawElementProviderSimple

The item in the container after which to begin the search.

automationProperty

Type: AutomationProperty

The property that contains the value to retrieve.

value

Type: System.Object [.NET] | Platform::Object [C++]

The value to retrieve.

Return value

Type: IRawElementProviderSimple

The first item that matches the search criterion if such an item exists; otherwise, null.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Automation.Peers
Windows::UI::Xaml::Automation::Peers [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Automation.Peers
Windows::UI::Xaml::Automation::Peers [C++]

Metadata

Windows.winmd

See also

ItemsControlAutomationPeer

 

 

Show:
© 2015 Microsoft