CustomPopupPlacementCallback CustomPopupPlacementCallback CustomPopupPlacementCallback CustomPopupPlacementCallback Delegate

Definición

Representa un método que proporciona una posición personalizada para un control de Popup.Represents a method that provides custom positioning for a Popup control.

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() 

Parámetros

popupSize
Size Size Size Size

Size del control Popup.The Size of the Popup control.

targetSize
Size Size Size Size

Size del objeto PlacementTarget.The Size of the PlacementTarget.

offset
Point Point Point Point

Point calculado a partir de los valores de propiedad HorizontalOffset y VerticalOffset.The Point computed from the HorizontalOffset and VerticalOffset property values.

Valor devuelto

System.Windows.Controls.Primitives.CustomPopupPlacement[]

Una matriz de posiciones posibles de CustomPopupPlacement para el control relativo Popup para el PlacementTarget.An array of possible CustomPopupPlacement positions for the Popup control relative to the PlacementTarget.

Herencia
CustomPopupPlacementCallbackCustomPopupPlacementCallbackCustomPopupPlacementCallbackCustomPopupPlacementCallback

Comentarios

Cuando se muestra el elemento emergente, se elige un punto que maximiza la cantidad de la ToolTip ventana que está visible.When the Popup is displayed, a point is chosen that maximizes the amount of the ToolTip window that is visible. Cada una Popup de ToolTip las clases CustomPopupPlacementCallback, y definen una propiedad de tipo. ContextMenuThe ContextMenu, Popup and ToolTip classes each define a property of type CustomPopupPlacementCallback.

Métodos de extensión

GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate) GetMethodInfo(Delegate)

Obtiene un objeto que representa el método representado por el delegado especificado.Gets an object that represents the method represented by the specified delegate.

Se aplica a

Consulte también: