(0) exportieren Drucken
Alle erweitern

Window.OwnedWindows-Eigenschaft

Gets a collection of windows for which this window is the owner.

Namespace: System.Windows
Assembly: PresentationFramework (in presentationframework.dll)
XML-Namespaces:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public WindowCollection OwnedWindows { get; }
/** @property */
public WindowCollection get_OwnedWindows ()

public function get OwnedWindows () : WindowCollection

Sie können diese Eigenschaft nicht in XAML verwenden.

Eigenschaftenwert

A WindowCollection that contains references to the windows for which this window is the owner.

An owned window is one whose Owner property is set with a reference to another window, which is known as the owner window. To find all the windows that an owner window owns, you can enumerate WindowCollection that is returned by the OwnedWindows property.

The following example shows how to enumerate OwnedWindows.

foreach (Window ownedWindow in this.OwnedWindows)
{
    Console.WriteLine(ownedWindow.Title);
}

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
Anzeigen:
© 2014 Microsoft