I've extended the SequentialWorkflowRootDesigner class in an attempt to overload IsSupportedActivityType so that I can keep some custom activities from being dropable in the initial sequence but my IsSupportedActivityType method is not being called. I want to make my activity to be only allowed in an inner composite activity. Am I barking up the wrong tree or does anybody have a suggestion
I want to make it so that the following is alowed:
lt;sequence>
<container>
<customactivity />
</container>
</sequence>
while the following is not
<sequence>
<customactivity />
<container>
...
</container>
</sequence>
Thanks in advance

Custom Designer - IsSupportedActivityType()
S.S.P.
Ah, itis amazing what happens when you don't try to do things half-<BLEEPING> backwards.
Thank you.
Michael
Yachtsman
Write a custom designer for your custom activity and override the CanBeParentedTo method. Only return true from the method if the parent activity passed in matches your container type.
Keep in mind this only applies to the design surface. You may want to create a custom validator to further enforce this so people can't create workflows in code and get around your designer restriction. Do the same test in the validator where you check activity.parent to be the correct type.
Matt