如何对 Window Workflow Foundation 进行评论和文档

发布于 2024-08-27 17:35:41 字数 100 浏览 2 评论 0原文

我正在使用一些简单的 xoml 工作流程(.NET 3.5),并且我想在 xoml 文件上添加一些简单的注释和注释。

我可以找到有关活动的“描述”属性,但这并不容易阅读。

I am working with few simple xoml workflow (.NET 3.5), and I want to add few simple comment and note on the xoml file.

I can find a "Description" property on activity, but that not easy to read.

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

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

发布评论

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

评论(2

情话已封尘 2024-09-03 17:35:41

我找不到类似的东西。

我想工作流程应该是不言自明的,因此注释被认为是过时的。您在 WWF4 中提到的缺少描述属性似乎证明了这一点。

所以在WWF3中你可以使用Description属性。它是未格式化的文本,但保留行结尾。当您将鼠标指针悬停在设计器中的活动上方时,就会显示它。

在 WWF4 中,唯一的方法是在 .xaml 文件中添加 XML 注释。

您始终可以自己创建某种评论活动。它可以具有富文本描述属性,该属性将显示在工作流设计器内的编辑器控件中。此解决方案的主要缺点是执行此活动时会产生一些额外的运行时成本。

I couldn't find anything like that.

I guess workflows are supposed to be self explanatory so comments are considered obsolete. Lack of Description property you mentioned in WWF4 seems to prove this.

So in WWF3 you can use Description property. It is unformatted text, but retains line endings. And it's shown when you hover mouse pointer above activity in designer.

In WWF4 the only way is adding XML comments in .xaml files.

And always you can create some kind of Comment activity yourself. It could have rich-text Description property which would be shown in its editor control within workflow designer. The major drawback of this solution is some additional runtime cost when executing this activity.

謌踐踏愛綪 2024-09-03 17:35:41

经典的 xml 风格注释不适用于 xoml 文件吗?

<!-- comment --> 

Don't the classical xml style comment apply to xoml files ?

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