Window WF 活动设计器到工具箱

发布于 2024-09-29 03:50:15 字数 138 浏览 3 评论 0原文

我正在尝试创建一个空的自定义活动,以便我可以在工作流设计器中发表评论。我有一个活动设计器,它不执行任何操作,但有一个文本块,以便可以添加注释。将其放入我的工作流程工具箱的最简单方法是什么?我的工作流程工具箱中当前有一个空活动,但我不知道如何将新设计器放在它上面。

I am trying to make an empty custom activity so that I can have comments in the workflow designer. I have an activity designer that does not do anything but has a text block so the comments can be added. What is the easiest way to get this into my workflow toolbox? I have an empty activity that is currently in the workflow toolbox, but I have no idea how to lay the new designer on top of it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

海拔太高太耀眼 2024-10-06 03:50:15

在类声明之前附加 Designer 属性。

示例代码:

[Designer(typeof(CustomActityDesigner))]
public class CustomActivity:NativeActivity {
...

attach the Designer attribute before your class declaration.

example code:

[Designer(typeof(CustomActityDesigner))]
public class CustomActivity:NativeActivity {
...
人│生佛魔见 2024-10-06 03:50:15

您可以使用设计器属性将活动设计器附加到活动。当您将活动拖到设计器上时,您将看到您的设计器而不是默认设计器。

You can use the Designer attribute to attach the activity designer to the activity. When you drag the activity onto the designer you will get to see your designer instead of the default designer.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文