Activity Designer Strange Results RRS feed

  • Question

  • Hiya

    I have tried writing a designer for a custom composite activity and in order to get the children of the activity to be drawn I have tried using

    base.PaintContainedDesigners(e); and

    The composite activity sits in a sequencial workflow and using either of these lines produce some very strange results.  The activity prior to my composite gets drawn fine, then the composite itself is drawn fine but with no children, then all the other activities and the workflow itself seem to be drawn offset from the top left to the middle of my composite.  This means that apart from the two activities drawn first, all of the other including the workflow heading half disappear off to the right and can't be scrolled to.

    Does anyone know the correct way to get children of a composite to draw inside a composite if you've written your own designer?

    Friday, September 29, 2006 10:55 AM


  • In your custom designer, you will need to define the location of the child activities that you have added to it. YOu can do this by overriding OnLayout and OnPaint in your custom designer. Let me know if you still have any problems
    Friday, January 19, 2007 5:11 AM