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

ContextualMenu.PrepareForDisplay

切换到手册
public void PrepareForDisplay (Experimental.UIElements.EventBase e);

描述

通过调用项目的状态回调更新所有项目状态并删除多余分隔线。这是在显示菜单之前调用的。