WindowPattern Class

Definition

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
Inheritance
WindowPattern

Remarks

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.

Fields

CanMaximizeProperty

Identifies the CanMaximize property.

CanMinimizeProperty

Identifies the CanMinimize property.

IsModalProperty

Identifies the IsModal property.

IsTopmostProperty

Identifies the IsTopmost property.

Pattern

Identifies the WindowPattern control pattern.

WindowClosedEvent

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

WindowInteractionStateProperty

Identifies the WindowInteractionState property.

WindowOpenedEvent

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

WindowVisualStateProperty

Identifies the WindowVisualState property.

Properties

Cached

Gets the cached UI Automation property values for this WindowPattern.

Current

Gets the current UI Automation property values for this WindowPattern.

Methods

Close()

Attempts to close the current window.

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
SetWindowVisualState(WindowVisualState)

Changes the WindowVisualState of the window.

ToString()

Returns a string that represents the current object.

(Inherited from Object)
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