Export (0) Print
Expand All
Expand Minimize

ContentElement.GetUIParentCore Method

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

Namespace: System.Windows
Assembly: PresentationCore (in presentationcore.dll)

protected internal virtual DependencyObject GetUIParentCore ()
protected DependencyObject GetUIParentCore ()
protected internal function GetUIParentCore () : DependencyObject
You cannot use methods in XAML.

Return Value

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

The default virtual implementation of this method returns a null reference (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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft