CustomPopupPlacementCallback Delegasikan
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
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
- targetSize
- Size
- 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. |