Asked by:

Windows Workflow Foundation 4.0 ActivityDesigner

Question

Hello. At me is custom activity and connected with it activityDesigner. By pressing the button which is located on activityDesigner show WPF forms in which the user sets value. At closing of this form value should be displayed in ExpressionTextBox. Prompt, whether is possible so to connect to (display)?

All replies

Let's say that your ETB is bound to "Foo" [in your code above, you bind to Body, I'm not sure that's what you want to bind it to, unless Body is the expression, you likely want to bind it to an InArgument<String> ]

Anyway, in the code beside you need to do

this.ModelItem.Properties["Foo"].SetValue(your value here)

Now, if an ETB is bound to Foo, you most likely want to wrap whatever is returned from the dialog in a VBValue expression