Hi,
I've write a custom activty that inherits from SequenceActivity.
This activity is composed of two sub activities: handlexternalevent and callexternalmethod
I would like that my custom activity looks like a basic activity (collapsed) and I don't want that, when the user drops the custom activity on a workflows, he sees the two sub activity.
Any idea must be easy but i didn't find the trick.
thx!
Antoine

Custom sequence activity: Collapsed by default?
bes7252
George Wright
It's the base class from which all activity designers inherit (directly or indirectly). Notice that you can actually implement a derived class yourself as someone else suggested to distinguish your activity with its own custom design time appearance. Here's an example of a slightly customized activity designer:
Forch
here is the full code for those who are interested:
TAS-man
you should be able to do sio with the DesignerAttribute.
Try adding the following: <Designer(typeof(ActivityDesigner), typeof(IDesigner))> before your custom activity class declaration.
Maurice
Amos Soma
If you derive from ActivityDesigner (as suggested earlier) instead of Sequential Activity Designer, then you're composite will look like any of the built in activities. I.E., you won't have to collapse it. You can also then add an ActivityDesignerTheme to control background and foreground color to set your activity apart.
Matt