CustomPopupPlacementCallback Delegera

Definition

Representerar en metod som tillhandahåller anpassad positionering för en Popup kontroll.

public delegate cli::array <System::Windows::Controls::Primitives::CustomPopupPlacement> ^ CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);
public delegate System.Windows.Controls.Primitives.CustomPopupPlacement[] CustomPopupPlacementCallback(Size popupSize, Size targetSize, Point offset);
type CustomPopupPlacementCallback = delegate of Size * Size * Point -> CustomPopupPlacement[]
Public Delegate Function CustomPopupPlacementCallback(popupSize As Size, targetSize As Size, offset As Point) As CustomPopupPlacement() 

Parametrar

popupSize
Size

Kontrollens SizePopup .

targetSize
Size

Size för PlacementTarget.

offset
Point

Beräknas Point från egenskapsvärdena HorizontalOffset och VerticalOffset .

Returvärde

En matris med möjliga CustomPopupPlacement positioner för Popup kontrollen i förhållande till PlacementTarget.

Kommentarer

När popup-fönstret visas väljs en punkt som maximerar mängden av fönstret ToolTip som visas. Klasserna ContextMenu, Popup och definierar var och ToolTip en en egenskap av typen CustomPopupPlacementCallback.

Tilläggsmetoder

Name Description
GetMethodInfo(Delegate)

Hämtar ett objekt som representerar den metod som representeras av det angivna ombudet.

Gäller för

Se även