Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

WindowPattern::SetWindowVisualState Method

Changes the WindowVisualState of the window.

Namespace:  System.Windows.Automation
Assembly:  UIAutomationClient (in UIAutomationClient.dll)

public:
void SetWindowVisualState(
	WindowVisualState state
)

Parameters

state
Type: System.Windows.Automation::WindowVisualState

The requested WindowVisualState of the window.

ExceptionCondition
InvalidOperationException

A control does not support a requested behavior.

In the following example, a WindowPattern control pattern is obtained from an AutomationElement and is subsequently used to specify the visual state of the AutomationElement.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft