Expand Minimize

CustomPopupPlacementCallback Delegate

Represents a method that provides custom positioning for a Popup control.

Namespace:  System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

type CustomPopupPlacementCallback = 
    delegate of  
        popupSize:Size * 
        targetSize:Size * 
        offset:Point -> CustomPopupPlacement[]

Parameters

popupSize
Type: System.Windows.Size

The Size of the Popup control.

targetSize
Type: System.Windows.Size

The Size of the PlacementTarget.

offset
Type: System.Windows.Point

The Point computed from the HorizontalOffset and VerticalOffset property values.

Return Value

Type: System.Windows.Controls.Primitives.CustomPopupPlacement[]
An array of possible CustomPopupPlacement positions for the Popup control relative to the PlacementTarget.

When the Popup is displayed, a point is chosen that maximizes the amount of the ToolTip window that is visible. The ContextMenu, Popup and ToolTip classes each define a property of type CustomPopupPlacementCallback.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft