Exposes methods and properties to support access by a Microsoft UI Automation client to controls that provide fundamental window-based functionality within a traditional graphical user interface (GUI). Implement this interface in order to support the capabilities that an automation client requests with a GetPattern call and PatternInterface.Window.
The IWindowProvider interface has these types of members:
The IWindowProvider interface has these methods. It also inherits methods from the Object class.
|Close||Closes the window.|
|SetVisualState||Changes the visual state of the window (such as minimizing or maximizing it).|
|WaitForInputIdle||Blocks the calling code for the specified time or until the associated process enters an idle state, whichever completes first.|
The IWindowProvider interface has these properties.
|Read-only||Gets the interaction state of the window.|
|Read-only||Gets a value that specifies whether the window is modal.|
|Read-only||Gets a value that specifies whether the window is the topmost element in the z-order of layout.|
|Read-only||Gets a value that specifies whether the window can be maximized.|
|Read-only||Gets a value that specifies whether the window can be minimized.|
|Read-only||Gets the visual state of the window.|
For more info on what this pattern is for, see Window Control Pattern.
IWindowProvider isn't implemented by any existing Windows Runtime automation peers. 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++ APIs as they use to define control logic or other automation support.
Minimum supported client
Minimum supported server
|Windows Server 2012|
Minimum supported phone
|Windows Phone 8.1 [Windows Runtime apps only]|
- IWindowProvider (COM interface)
- Custom automation peers
- Window Control Pattern