CustomPopupPlacementCallback Delegat

Definicja

Reprezentuje metodę, która zapewnia niestandardowe pozycjonowanie dla kontrolki Popup .

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

Parametry

popupSize
Size

Kontrolka SizePopup .

targetSize
Size

PlacementTargetElement Size .

offset
Point

Obliczone Point na podstawie HorizontalOffset wartości właściwości i VerticalOffset .

Wartość zwracana

Tablica możliwych CustomPopupPlacement pozycji kontrolki Popup względem PlacementTargetelementu .

Uwagi

Po wyświetleniu okienka podręcznego zostanie wybrany punkt, który maksymalizuje ilość widocznego ToolTip okna. Klasy ContextMenu, Popup i ToolTip definiują właściwość typu CustomPopupPlacementCallback.

Metody rozszerzania

GetMethodInfo(Delegate)

Pobiera obiekt reprezentujący metodę reprezentowaną przez określonego delegata.

Dotyczy

Zobacz też