开发者

How to use WF4 activity to wait for an event?

I found that you can use Pick activity and this activity will contain a few PickBranches, each of which contains a Trigger and an Action. How do I tie the Trigger activity to any .NET event? for exam开发者_JAVA百科ple, Timer.Tick event, Key pressed event, or perhaps my own event?


You don't directly. A WF activity can use a bookmark and wait for that bookmark to be resumed. Now you are free to resume a bookmark based on some .NET event or a key press but you still have to code that part.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜