Can anyone explain what this code means:
[
Designer(typeof(CustomDesigner), typeof(IDesigner))][
Designer(typeof(CustomDesigner), typeof(IRootDesigner))]And, what is the difference between them
Thanks
Can anyone explain what this code means:
[
Designer(typeof(CustomDesigner), typeof(IDesigner))][
Designer(typeof(CustomDesigner), typeof(IRootDesigner))]And, what is the difference between them
Thanks
Designer question
akaRickShaw
[Designer(typeof(CustomDesigner), typeof(IDesigner))] is for when the activity is being designed as part of another workflow. [Designer(typeof(CustomDesigner), typeof(IRootDesigner))] is for when the activiity is being design as a root.
jwaddell
Thanks!
A little more spesific question:
Let's say I have 3 activities:
Activity1 --> The design surface of the workflow (something like SequentialWorkflowActivity)
Activity2 --> An activity that I can drop into Activity1 (or another Activity2). It can contain other activities.
Activity3 --> An activity that I can drop into either Activity1 or Activity2. It can not contain other activites.
Where should I use IDesigner, IRootDesigner or maybe both
Bradley Reynolds
Hiya
You should use IRootDesigner ONLY for Activity1 which is the workflow itself
IDesigner will be used for any activity that can be contained by another activity