I​Multiple​View​Provider I​Multiple​View​Provider I​Multiple​View​Provider Interface

Definition

Exposes methods and properties to support Microsoft UI Automation client access to controls that provide, and are able to switch between, multiple representations of the same set of information or child controls. Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.MultipleView.

public interface IMultipleViewProviderpublic interface IMultipleViewProviderPublic Interface IMultipleViewProvider
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

This pattern has guidelines and conventions that aren't fully documented here. For more info on what this pattern is for, see MultipleView Control Pattern.

IMultipleViewProvider isn't implemented by any existing Windows Runtime automation peers. Notably, IMultipleViewProvider doesn't exist for SemanticZoom. The interface exists so that custom control authors can support the automation pattern in a custom control, and implement their automation support using the same Windows Runtime managed or C++ API as they use to define control logic or other automation support.

Use MultipleViewPatternIdentifiers if you want to reference the IGridProvider pattern properties from control code when you fire automation events or call RaisePropertyChangedEvent.

Properties

CurrentView CurrentView CurrentView

Gets the current control-specific view.

public int CurrentView { get; }public int CurrentView { get; }Public ReadOnly Property CurrentView As int
Value
int int int

The view identifier for the current view of the UI Automation element.

Attributes

Methods

GetSupportedViews() GetSupportedViews() GetSupportedViews()

Retrieves a collection of control-specific view identifiers.

public int[] GetSupportedViews()public int[] GetSupportedViews()Public Function GetSupportedViews() As int[]
Returns
int[] int[] int[]

A collection of values that identifies the views available for a UI Automation element.

Attributes

GetViewName(Int32) GetViewName(Int32) GetViewName(Int32)

Retrieves the name of a control-specific view.

public PlatForm::String GetViewName(Int32 viewId)public string GetViewName(Int32 viewId)Public Function GetViewName(viewId As Int32) As string
Parameters
viewId
System.Int32 System.Int32 System.Int32

The view identifier.

Returns
string string string

A localized name for the view.

Attributes

SetCurrentView(Int32) SetCurrentView(Int32) SetCurrentView(Int32)

Sets the current control-specific view.

public void SetCurrentView(Int32 viewId)public void SetCurrentView(Int32 viewId)Public Function SetCurrentView(viewId As Int32) As void
Parameters
viewId
System.Int32 System.Int32 System.Int32

A view identifier.

Attributes

See Also