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 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)