Interface ISupportsWindowPattern exposes a bunch of methods and properties:
$element.SetWindowVisualState([System.Windows.Automation.WindowVisualState]::Maximized);
$element.Close();
$element.WaitForInputIdle($milliseconds);

$element.CanMaximize
$element.CanMinimize
$element.IsModal
$element.IsTopmost
[System.Windows.Automation.WindowInteractionState]$interactionState = $element.WindowInteractionState // may not be working
[System.Windows.Automation.WindowVisualState]$visualState = $element.WindowVisualState // may not be working

Last edited Dec 23, 2013 at 11:23 AM by apetrovskiy, version 1

Comments

No comments yet.