Bahasa

CustomPopupPlacementCallback Delegasikan

Definisi

Mewakili metode yang menyediakan pemosisian kustom untuk Popup kontrol.

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

Parameter

popupSize
Size

Kontrol SizePopup .

targetSize
Size

Size PlacementTarget.

offset
Point

Dihitung Point dari HorizontalOffset nilai properti dan VerticalOffset .

Tampilkan Nilai

Array kemungkinan CustomPopupPlacement posisi untuk Popup kontrol relatif terhadap PlacementTarget.

Keterangan

Saat Popup ditampilkan, titik dipilih yang memaksimalkan jumlah ToolTip jendela yang terlihat. Kelas ContextMenu, Popup dan ToolTip masing-masing menentukan properti jenis CustomPopupPlacementCallback.

Metode Ekstensi

Nama Deskripsi
GetMethodInfo(Delegate)

Mendapatkan objek yang mewakili metode yang diwakili oleh delegasi yang ditentukan.

Berlaku untuk

Lihat juga