UITypeEditor scenario in WF4

When you author custom activities in WF3, you usually need to develop UITypeEditors in order to allow you to show a custom dialog when someone wants to provide a value the activity in the property grid. For example, to allow the person to browse to a file, or something a bit more advanced, like selecting an entity from your system.

This is surprisingly easy to do, even if you have just a rudimentary understanding of winforms.

I found it a bit challenging to start doing stuff like this in WF4, because just as you need to understand winforms a bit in order to author custom activities in WF3, you need to understand WPF to do the same in WF4.

I’ve never really worked with WPF, except for hacking a Silverlight uploader to do exactly what I want…

But luckily WF4 has forced me to look into this interesting technology.

Anyhoo, back to the issue at hand. In order to do the same in WF4 as you would achieve with UITypeEditors in WF3, just download the samples from: http://www.microsoft.com/downloads/details.aspx?FamilyID=35ec8682-d5fd-4bc3-a51a-d8ad115a8792&displaylang=en and have a look at the following sample: \WF_WCF_Samples\WF\Basic\Designer\PropertyGridExtensibility.

This is also a nice walkthrough on how to do this in WPF: http://msdn.microsoft.com/en-us/library/bb546930.aspx.


~ by hendrikswan on January 7, 2010.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: