Browse Source
ContextMenuEventArgs GetPosition summary
context-menu-refactor
Dominik Matijaca
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
src/Avalonia.Controls/ContextMenu.cs
|
|
|
@ -35,8 +35,9 @@ namespace Avalonia.Controls |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Initializes a new instance of the ContextMenuEventArgs
|
|
|
|
/// class.
|
|
|
|
/// Gets the position of the cursor relative to the visual at
|
|
|
|
/// the time the context menu was opening. Returns null if such
|
|
|
|
/// a position isn't available.
|
|
|
|
/// </summary>
|
|
|
|
public Point? GetPosition(IVisual? relativeTo) |
|
|
|
=> Pointer?.GetPosition(relativeTo); |
|
|
|
|