Export (0) Print
Expand All

IMultipleViewProvider.GetViewName Method

Retrieves the name of a control-specific view.

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

string GetViewName(
	int viewId
)

Parameters

viewId
Type: System.Int32
The view identifier.

Return Value

Type: System.String
A localized name for the view.

View identifiers can be retrieved by using GetSupportedViews.

The collection of view identifiers must be identical across instances.

View names must be suitable for use in text-to-speech, Braille, and other accessible applications.

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2014 Microsoft