IExpandCollapseProvider Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 AutomationPeer.GetPattern call and PatternInterface.ExpandCollapse.
public interface class IExpandCollapseProvider
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(1827615900, 45441, 23819, 178, 151, 195, 176, 22, 97, 32, 195)]
struct IExpandCollapseProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(1827615900, 45441, 23819, 178, 151, 195, 176, 22, 97, 32, 195)]
public interface IExpandCollapseProvider
Public Interface IExpandCollapseProvider
- Derived
- Attributes
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 AutomationPeer.RaisePropertyChangedEvent.
Properties
ExpandCollapseState |
Gets the state (expanded or collapsed) of the control. |
Methods
Collapse() |
Hides all nodes, controls, or content that are descendants of the control. |
Expand() |
Displays all child nodes, controls, or content of the control. |