DesktopContextMenuOptions record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopContextMenuOptions : IEquatable<DesktopContextMenuOptions>

Inherits or implements IEquatable.

Where a context menu opens, for IWindowPlatformServices.ShowContextMenuAsync.

Remarks

Set DesktopContextMenuOptions.X and DesktopContextMenuOptions.Y together, or neither to open the menu at the pointer. A page that opens a menu from its contextmenu event passes the event's clientX and clientY, also for a menu the keyboard opened, whose event carries the focused element's position.

Constructors

DesktopContextMenuOptions

public DesktopContextMenuOptions()

No documentation.

Properties

X

public double? X { get; init; }

Gets the horizontal position in CSS pixels from the left of the page's viewport, or null for the pointer.

Y

public double? Y { get; init; }

Gets the vertical position in CSS pixels from the top of the page's viewport, or null for the pointer.