.NET Framework Developer Center > .NET Development Forums > Windows Workflow Foundation > is it possible to support auto-alignment and multiple selection feature in FreeformActivityDesigner?
Ask a questionAsk a question
 

Answeris it possible to support auto-alignment and multiple selection feature in FreeformActivityDesigner?

  • Tuesday, October 27, 2009 6:28 AMMulder2008 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi all:

    I'm doing some work in FreeformActivityDesigner customization, and now I have following questions:
    1) Is it possible to support alignment feature or display grid line in FreeformActivityDesigner?

    As someone mentioned in http://odetocode.com/articles/447.aspx ,
    "The workflow designer allows customization of the design surface via theme s. A theme defines the background colors, fonts,  grid lines , and border styles to use on the design surface. We can even specify color and border styles for specific activity types. Through Visual Studio, we can create new themes, or modify existing themes."
    but I could not find grid properties in ActivityDesignerTheme class, any idea?

    Any reference will be appreciated, thanks!

    Best regards

    fight for future!

Answers

  • Friday, October 30, 2009 3:37 AMMulder2008 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    1: decorate designer class with customer Theme, eg:
    [ActivityDesignerTheme( typeof( CustomCompositeDesignerTheme ) )]
    

    2: in CustomCompositeDesignerThem's constructor, there is argument: WorkflowTheme them. update
    theme.AmbientTheme.ShowGrid = true;
    

    done.
    fight for future!
    • Marked As Answer byMulder2008 Friday, October 30, 2009 3:38 AM
    •  

All Replies

  • Friday, October 30, 2009 3:37 AMMulder2008 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     AnswerHas Code
    1: decorate designer class with customer Theme, eg:
    [ActivityDesignerTheme( typeof( CustomCompositeDesignerTheme ) )]
    

    2: in CustomCompositeDesignerThem's constructor, there is argument: WorkflowTheme them. update
    theme.AmbientTheme.ShowGrid = true;
    

    done.
    fight for future!
    • Marked As Answer byMulder2008 Friday, October 30, 2009 3:38 AM
    •