Questa documentazione è stata archiviata e non viene gestita.

Metodo ContentElement.GetUIParentCore

When overridden in a derived class, returns an alternative user interface (UI) parent for this element if no visual parent exists.

Spazio dei nomi: System.Windows
Assembly: PresentationCore (in presentationcore.dll)

protected internal virtual DependencyObject GetUIParentCore ()
protected DependencyObject GetUIParentCore ()
protected internal function GetUIParentCore () : DependencyObject
Non è possibile utilizzare metodi in XAML.

Valore restituito

An object, if implementation of a derived class has an alternate parent connection to report.

The default virtual implementation of this method returns riferimento null (Nothing in Visual Basic). FrameworkContentElement provides a practical implementation.

Alternative parents are used for event routing, in cases where an element creates an alternative parent structure so that its events are routed in a way that diverges from the standard pattern of routing up the visual tree to the standard parent, or downward in the preview routing strategy.

Microsoft .NET Framework 3.0 è supportato in Windows Vista, Microsoft Windows XP SP2 e Windows Server 2003 SP1.

.NET Framework

Supportato in: