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
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.
I believe this was answered here
精彩评论