[英]Windows WF 3.5 How to drop activity on Custom Composite Activity in Workflow
I have a custom activity which is a composite of several activities. 我有一个自定义活动,它是多个活动的组合。 There are some activities on the composite where I would like users of the custom activity to be able to drop more activities at design time on the Worfkflow surface.
组合上有一些活动,我希望自定义活动的用户能够在设计时在Worfkflow曲面上删除更多活动。
Custom Composite activities don't allow drag-drop actions out-of-the box, but I have tried using a custom designer and overridden OnDragDrop etc. and that did not work either. 自定义复合活动不允许开箱即用的拖放操作,但是我尝试使用自定义设计器并覆盖了OnDragDrop等,但这也不起作用。
Code samples/snippets in any answers would be most helpful... 任何答案中的代码样本/代码片段将最有帮助...
Even though some time has passed, and the following isn't exactly what the OP asked for, I'll post a link to a valuable resource here. 虽然一段时间已经过去了,下面是不是正是 OP要求,我会发布一个链接到这里的宝贵资源。 It might be a useful starting point for others looking for this kind of information.
对于其他寻求此类信息的人来说,这可能是一个有用的起点。
WF Activities--Customizing the Designer over at the C# Online.NET site. WF活动-在C#Online.NET网站上自定义设计器 。
Take the code snippets from the first three pages ( Implementing a style , Implementing a Designer , Adding attributes to the Activity ) and voilà, you have the building blocks for a composite activity that accepts other child activities. 从前三页中的代码片段( 实现样式 , 实现设计器 , 向Activity添加属性 )和样式 ,您可以为接受其他子活动的复合活动构建模块。
(What's missing now to answer the OP's question is how to restrict the activity insertion process to certain positions in the child activity graph.) (现在缺少回答OP问题的方法是如何将活动插入过程限制在子活动图中的某些位置。)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.