Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要根据活动视图在工具栏中显示/隐藏命令。我怎样才能做到这一点。任何帮助将不胜感激。
我正在尝试使用 visiblewhen 但它不起作用。
以下代码在视图处于焦点时将操作添加到工具栏。
<visibleWhen checkEnabled="false"> <with variable="activePartId"> <equals value="com.example.activeViewID"> </equals> </with> </visibleWhen>