Dynamically control layout of workflow RRS feed

  • Question


    I am creating a statemachine workflow at runtime in a asp.net application and use the WorkflowView and SaveWorkflowImage to create an image of the workflow to show to users.

    By default the states are layed out all below each other.. and that doesn't look good. Because the workflow is created dynamically there is no layout file to position them.

    Is there any way to control the location of the statemachine activities (or actitivties in general) at runtime on the design surface ? I've tried to analyse the way the way LoadDesignerLayout does this (with reflector), but I can't figure out what's happening.

    Does anyone have a suggestion for me ?



    Monday, March 26, 2007 8:57 PM


  • Unfortunately the only way to control the positioning of the activities is through the layout file. I am afraid there is no solution for you to display the StateMachine with appropriate positioning at RunTime.




    Thursday, April 5, 2007 11:42 PM