GetSupportedViews Method
Collapse the table of content
Expand the table of content

IMultipleViewProvider.GetSupportedViews Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Retrieves a collection of control-specific view identifiers.

Namespace:  System.Windows.Automation.Provider
Assembly:  System.Windows (in System.Windows.dll)

'Declaration
Function GetSupportedViews As Integer()

Return Value

Type: System.Int32 ()
A collection of values that identifies the views available for a UI automation element.

The collection of view identifiers must be identical across instances.

View identifier values can be passed to GetViewName.

A typical implementation pattern for the multiple view paradigm is to have some property on the owner control where UI automation is supported that exposes the possible views as a standard enumeration. Then, you map the integer values of that enumeration to the integers you report in the GetSupportedViews collection. GetViewName values would also correspond to the member names of the enumeration member with that value, at least when used with neutral or invariant culture.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft