Share via


IWindowProvider Interface

Definition

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

public interface class IWindowProvider
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(2213666713, 40415, 22366, 166, 81, 46, 230, 87, 253, 22, 224)]
struct IWindowProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(2213666713, 40415, 22366, 166, 81, 46, 230, 87, 253, 22, 224)]
public interface IWindowProvider
Public Interface IWindowProvider
Derived
Attributes

Remarks

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++ API as they use to define control logic or other automation support.

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

Properties

InteractionState

Gets the interaction state of the window.

IsModal

Gets a value that specifies whether the window is modal.

IsTopmost

Gets a value that specifies whether the window is the topmost element in the z-order of layout.

Maximizable

Gets a value that specifies whether the window can be maximized.

Minimizable

Gets a value that specifies whether the window can be minimized.

VisualState

Gets the visual state of the window.

Methods

Close()

Closes the window.

SetVisualState(WindowVisualState)

Changes the visual state of the window (such as minimizing or maximizing it).

WaitForInputIdle(Int32)

Blocks the calling code for the specified time or until the associated process enters an idle state, whichever completes first.

Applies to

See also