pdiddy
pdiddy

Reputation: 6297

Workflow 4 Activity Designer combobox

I'd like to create an activity designer that display a combo box with values coming from the database. Is this possible?

I have seen example of activity designer, but they are all with ExpressionTextBox ...

Any help, links is appreciated thanks

Upvotes: 0

Views: 1541

Answers (2)

Yossi Dahan
Yossi Dahan

Reputation: 5357

I believe this was answered here

Upvotes: 0

Drew Marsh
Drew Marsh

Reputation: 33379

Sure it is. An ActivityDesigner is just a WPF control, so essentially you just want to put a ListBox control on the design surface, load the data from your database however you see fit (ADO.NET, web service call, etc.) and then use standard WPF data binding to bind that data to the ListBox.

Considering that someone using your control will probably need to supply some settings to connect to the data source (e.g. server name/address, username, password, etc.) you will probably want to also have a button on the design surface that will show PopUp or maybe even another Window where the user can enter/configure those settings.

Upvotes: 1

Related Questions