.NET Framework Class Library
Window Constructor
Initializes a new instance of the Window class.
Assembly: PresentationFramework (in PresentationFramework.dll)
Syntax
Visual Basic
Public Sub New
C#
public Window()
Visual C++
public:
Window()
F#
new : unit -> Window
Remarks
The constructor initializes the Width, Height, Top, and Left properties to their default Window values.
If a window is created within an AppDomain that has an Application object, the constructor adds the Window object to the set of Application-managed windows via the Windows property of the Application object.
Version Information
.NET Framework
Supported in: 4, 3.5, 3.0.NET Framework Client Profile
Supported in: 4, 3.5 SP1.NET Framework Security
-
SecurityPermission
for permission for this object to call unsafe native methods. Associated enumeration: UnmanagedCode
Platforms
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
See Also