Interface IWindowPattern
The methods and properties used to interact with a window control.
public interface IWindowPattern
Properties
CanMaximize
Indicates whether the UIA Pro element can be maximized.
bool CanMaximize { get; }
Property Value
CanMinimize
Indicates whether the UIA Pro element can be minimized.
bool CanMinimize { get; }
Property Value
IsMaximized
Indicates whether the UIA Pro visual state is Maximized
bool IsMaximized { get; }
Property Value
IsMinimized
Indicates whether the UIA Pro visual state is Minimized
bool IsMinimized { get; }
Property Value
IsModal
Indicates whether the UIA Pro element is modal.
bool IsModal { get; }
Property Value
IsTopmost
Indicates whether the UIA Pro element is the topmost element in the z-order.
bool IsTopmost { get; }
Property Value
WindowInteractionState
The WindowInteractionState of the UIA Pro element.
WindowInteractionState WindowInteractionState { get; }
Property Value
WindowVisualState
Gets the WindowVisualState of the UIA Pro element.
WindowVisualState WindowVisualState { get; }
Property Value
Methods
Close()
Attempts to close the current window.
void Close()
Maximize()
Sets the window visual state to Maximized
void Maximize()
Minimize()
Sets the window visual state to Minimized
void Minimize()
Restore()
Sets the window visual state to Normal
void Restore()
TryWaitForInputIdle(int)
Waits until the object is ready for input or the timeout expires. Note: This method is not supported when you enable the legacy UIA Pro Add-in. Returns True if the window is ready for input, False if the timeout expired.
bool TryWaitForInputIdle(int milliseconds)
Parameters
millisecondsintThe number of milliseconds to wait for the object to become ready. The maximum is MaxValue.
Returns
WaitForInputIdle(int)
Waits until the object is ready for input or the timeout expires. Note: This method is only supported when you enable the legacy UIA Pro Add-in.
[Obsolete("Use TryWaitForInputIdle(int) instead.")]
void WaitForInputIdle(int milliseconds)