IExpandCollapseProvider interface

Applies to Windows and Windows Phone

Exposes methods and properties to support access by a Microsoft UI Automation client to controls that visually expand to display content and that collapse to hide content. Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.ExpandCollapse.

Syntax


public interface IExpandCollapseProvider

Attributes

[Version(0x06020000)]
[WebHostHidden()]

Members

The IExpandCollapseProvider interface has these types of members:

Methods

The IExpandCollapseProvider interface has these methods. It also inherits methods from the Object class.

MethodDescription
Collapse Hides all nodes, controls, or content that are descendants of the control.
Expand Displays all child nodes, controls, or content of the control.

 

Properties

The IExpandCollapseProvider interface has these properties.

PropertyAccess typeDescription

ExpandCollapseState

Read-onlyGets the state (expanded or collapsed) of the control.

 

Remarks

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

IExpandCollapseProvider is implemented by the existing Windows Runtime automation peer for ComboBox (ComboBoxAutomationPeer).

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

Requirements

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.Provider
Windows::UI::Xaml::Automation::Provider [C++]

Metadata

Windows.winmd

See also

ExpandCollapsePatternIdentifiers
IExpandCollapseProvider (COM interface)
Custom automation peers
ExpandCollapse Control Pattern

 

 

Show:
© 2014 Microsoft