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 SourceInteractionState
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. |
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. |
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. |
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. |
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. |
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 SourceClose()
Closes the window.
Declaration
void Close()
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. |
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. |