Show / Hide Table of Contents

Interface IWindowProvider

Exposes methods and properties to support access by a UI automation client to controls that provide fundamental window-based functionality within a traditional graphical user interface (GUI).

Namespace: System.Windows.Automation.Provider
Assembly: OpenSilver.dll
Syntax
public interface IWindowProvider

Properties

| Improve this Doc View Source

InteractionState

Gets the interaction state of the window.

Declaration
WindowInteractionState InteractionState { get; }
Property Value
Type Description
WindowInteractionState

The interaction state of the control, as a value of the enumeration.

| Improve this Doc View Source

IsModal

Gets a value that specifies whether the window is modal.

Declaration
bool IsModal { get; }
Property Value
Type Description
System.Boolean

true if the window is modal; otherwise, false.

| Improve this Doc View Source

IsTopmost

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

Declaration
bool IsTopmost { get; }
Property Value
Type Description
System.Boolean

true if the window is topmost; otherwise, false.

| Improve this Doc View Source

Maximizable

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

Declaration
bool Maximizable { get; }
Property Value
Type Description
System.Boolean

true if the window can be maximized; otherwise, false.

| Improve this Doc View Source

Minimizable

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

Declaration
bool Minimizable { get; }
Property Value
Type Description
System.Boolean

true if the window can be minimized; otherwise, false.

| Improve this Doc View Source

VisualState

Gets the visual state of the window.

Declaration
WindowVisualState VisualState { get; }
Property Value
Type Description
WindowVisualState

The visual state of the window, as a value of the enumeration.

Methods

| Improve this Doc View Source

Close()

Closes the window.

Declaration
void Close()
| Improve this Doc View Source

SetVisualState(WindowVisualState)

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

Declaration
void SetVisualState(WindowVisualState state)
Parameters
Type Name Description
WindowVisualState state

The visual state of the window to change to, as a value of the enumeration.

| Improve this Doc View Source

WaitForInputIdle(Int32)

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

Declaration
bool WaitForInputIdle(int milliseconds)
Parameters
Type Name Description
System.Int32 milliseconds

The amount of time, in milliseconds, to wait for the associated process to become idle.

Returns
Type Description
System.Boolean

true if the window has entered the idle state; false if the timeout occurred.

  • Improve this Doc
  • View Source