gpt4 book ai didi

c# - WF4 WorkflowDesigner.View 中 "activity selected"的事件

转载 作者:行者123 更新时间:2023-11-30 22:19:55 24 4
gpt4 key购买 nike

当用户在 WorkflowDesigner 设计图面( View )上使用 WF4 事件时,我想在停靠 Pane 中显示一些帮助文本。当用户选择新事件时,帮助文本需要更改。

当用户在重新托管的 WF4 WorkflowDesigner View 中选择一个项目(即工作流事件)时,是否有事件或其他机制要通知?

最佳答案

Selection在设计师的编辑上下文中可用。您只需订阅它的更改。

WorkflowDesigner.Context.Items.Subscribe<Selection>(selection => 
{
// 'selection' contains various properties including currently selected objects
});

关于c# - WF4 WorkflowDesigner.View 中 "activity selected"的事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15307819/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com