Udostępnij za pośrednictwem


IMultipleViewProvider 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 AutomationPeer.GetPattern call and PatternInterface.MultipleView.

public interface class IMultipleViewProvider
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1623086212, 15759, 20989, 190, 171, 66, 52, 34, 238, 30, 3)]
struct IMultipleViewProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(1623086212, 15759, 20989, 190, 171, 66, 52, 34, 238, 30, 3)]
public interface IMultipleViewProvider
Public Interface IMultipleViewProvider
Attributes

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 AutomationPeer.RaisePropertyChangedEvent.

Properties

CurrentView

Gets the current control-specific view.

Methods

GetSupportedViews()

Retrieves a collection of control-specific view identifiers.

GetViewName(Int32)

Retrieves the name of a control-specific view.

SetCurrentView(Int32)

Sets the current control-specific view.

Applies to

See also