Attaches a child element to a Popup control.
Assembly: PresentationFramework (in PresentationFramework.dll)
You might want to create a custom control that has the same functionality as an existing control and also exhibits the behavior of a Popup. You can make your control behave like a Popup by adding a Popup to your control and calling the method.
This method assigns child to the child property and binds the following properties to child.
When you call , child cannot be a child of a UIElement. Also, PlacementTarget should be set on your control before you call this method.
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.