Window Constructor ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the Window class.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

[SecurityCriticalAttribute]
public Window()

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.

SecurityPermission

for permission for this object to call unsafe native methods. Associated enumeration: UnmanagedCode

.NET Framework
Available since 3.0
Silverlight
Available since 4.0
Return to top
Show: