WindowPattern WindowPattern WindowPattern WindowPattern Class


Represents a control that provides fundamental window-based functionality within a traditional graphical user interface (GUI).

public ref class WindowPattern : System::Windows::Automation::BasePattern
public class WindowPattern : System.Windows.Automation.BasePattern
type WindowPattern = class
    inherit BasePattern
Public Class WindowPattern
Inherits BasePattern


Examples of controls that support this control pattern include top-level application windows, multiple-document interface (MDI) child windows, modal dialogs and balloon help windows.


CanMaximizeProperty CanMaximizeProperty CanMaximizeProperty CanMaximizeProperty

Identifies the CanMaximize property.

CanMinimizeProperty CanMinimizeProperty CanMinimizeProperty CanMinimizeProperty

Identifies the CanMinimize property.

IsModalProperty IsModalProperty IsModalProperty IsModalProperty

Identifies the IsModal property.

IsTopmostProperty IsTopmostProperty IsTopmostProperty IsTopmostProperty

Identifies the IsTopmost property.

Pattern Pattern Pattern Pattern

Identifies the WindowPattern control pattern.

WindowClosedEvent WindowClosedEvent WindowClosedEvent WindowClosedEvent

Identifies the event that is raised when a window is closed.

WindowInteractionStateProperty WindowInteractionStateProperty WindowInteractionStateProperty WindowInteractionStateProperty

Identifies the WindowInteractionState property.

WindowOpenedEvent WindowOpenedEvent WindowOpenedEvent WindowOpenedEvent

Identifies the event that is raised when a window is opened.

WindowVisualStateProperty WindowVisualStateProperty WindowVisualStateProperty WindowVisualStateProperty

Identifies the WindowVisualState property.


Cached Cached Cached Cached

Gets the cached UI Automation property values for this WindowPattern.

Current Current Current Current

Gets the current UI Automation property values for this WindowPattern.


Close() Close() Close() Close()

Attempts to close the current window.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetWindowVisualState(WindowVisualState) SetWindowVisualState(WindowVisualState) SetWindowVisualState(WindowVisualState) SetWindowVisualState(WindowVisualState)

Changes the WindowVisualState of the window.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
WaitForInputIdle(Int32) WaitForInputIdle(Int32) WaitForInputIdle(Int32) WaitForInputIdle(Int32)

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

Applies to

See also