Louis Rhys
Louis Rhys

Reputation: 35637

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 example, Timer.Tick event, Key pressed event, or perhaps my own event?

Upvotes: 0

Views: 1269

Answers (1)

Maurice
Maurice

Reputation: 27632

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.

Upvotes: 1

Related Questions