Experimental: this API is experimental and might be changed or removed in the future.

ContextualMenuManager.DisplayMenuIfEventMatches

切换到手册
public void DisplayMenuIfEventMatches (Experimental.UIElements.EventBase evt, Experimental.UIElements.IEventHandler eventHandler);

参数

eventHandler显示菜单的元素。
evt要检查的事件。

描述

Check if the event is an event that triggers the display of the menu and display it if it needs to.

这是一个抽象方法。ContextualMenuManager 的每个具体实现都定义了将显示菜单的事件。