Bagikan melalui


IWindowProvider Interface

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Exposes methods and properties to support access by a UI automation client to controls that provide fundamental window-based functionality within a traditional graphical user interface (GUI).

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

Syntax

'Declaration
Public Interface IWindowProvider
public interface IWindowProvider

The IWindowProvider type exposes the following members.

Properties

  Name Description
Public propertySupported by Silverlight for Windows Phone InteractionState Gets the interaction state of the window.
Public propertySupported by Silverlight for Windows Phone IsModal Gets a value that specifies whether the window is modal.
Public propertySupported by Silverlight for Windows Phone IsTopmost Gets a value that specifies whether the window is the topmost element in the z-order of layout.
Public propertySupported by Silverlight for Windows Phone Maximizable Gets a value that specifies whether the window can be maximized.
Public propertySupported by Silverlight for Windows Phone Minimizable Gets a value that specifies whether the window can be minimized.
Public propertySupported by Silverlight for Windows Phone VisualState Gets the visual state of the window.

Top

Methods

  Name Description
Public methodSupported by Silverlight for Windows Phone Close Closes the window.
Public methodSupported by Silverlight for Windows Phone SetVisualState Changes the visual state of the window (such as minimizing or maximizing it).
Public methodSupported by Silverlight for Windows Phone WaitForInputIdle Blocks the calling code for the specified time or until the associated process enters an idle state, whichever completes first.

Top

Remarks

This interface is implemented on a UI automation provider that must support the Window control pattern.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.