WF4 是否可以为复合活动创建设计器?

发布于 2024-08-18 00:33:42 字数 193 浏览 4 评论 0原文

我知道如何使用类上的 Designer 属性将设计器活动连接到 NativeActivity 或 CodeActivity。像这样:

[Designer(typeof(ParallelActivityDesigner))]

我还想将设计器连接到复合活动(仅由 xaml 文件中的一些活动组成),这可能吗?

I know how to hook up a designer activity to a NativeActivity or CodeActivity with the Designer attribute on the class. Like so:

[Designer(typeof(ParallelActivityDesigner))]

I would like to also hookup a designer to a composite activity (composed of some activities in only a xaml file), is that possible at all?

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

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

发布评论

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

评论(3

安穩 2024-08-25 00:33:42

到目前为止三种已知的方法:

  1. 在 .xaml.cs 文件旁边有一个代码,并使用 [DesignerAttribute],就像在您的问题
  2. [DesignerAttribute] 中一样,通过手动编辑 XAML 文件
  3. 使用元数据注册在设计时注册自定义属性,最简单的方法是重新托管的场景,但也可以在 VS 内使用 .Design.dll。

(参考工作流 Beta2 论坛< /a> 了解前 2) 项的详细信息

Three known ways so far:

  1. Have a code-beside .xaml.cs file, and use [DesignerAttribute], like in your question
  2. [DesignerAttribute] by editing the XAML file manually
  3. Using metadata registration to register custom attributes at design time, easiest in a rehosted scenario, but possible using a .Design.dll inside VS also.

(Ref Workflow Beta2 forum for details of the first 2)

无所的.畏惧 2024-08-25 00:33:42

可以查看用于使用 WorkflowItemPresenter 或 WorkflowItemsPresenter

http://msdn.microsoft.com/en-us/library/system.activities.presentation.workflowitempresenter.aspx
http://msdn.microsoft.com/en-us/library/dd759032.aspx

--matt

It is possible to do, check out the SDK sample for creating custom designers with either the WorkflowItemPresenter or the WorkflowItemsPresenter

http://msdn.microsoft.com/en-us/library/system.activities.presentation.workflowitempresenter.aspx
http://msdn.microsoft.com/en-us/library/dd759032.aspx

--matt

尾戒 2024-08-25 00:33:42

我自己也没有完全弄清楚这一点。应该是可能的,但我还没有弄清楚设计师需要的确切格式。获取信息的最佳位置是 Matt Winkler(设计器团队的 PM),网址为 http://blogs.msdn .com/mwinkle

I don't exactly have this figured out myself. It should be possible but I haven't figured out the exact format the designer needs to be. The best place for info is Matt Winkler (PM on the team working on the designer) at http://blogs.msdn.com/mwinkle

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