Freigeben über


Using the Sequence Styling

One of the most commonly used designers and generally the root is the Sequence activity. Of course, we spent some amount of time adding the animation and styling to the the Sequence Activity Designer.

However, due to a number of reasons(costs mainly), the activity designer is internal. However, the good news is customers can take advantage of the styling and animation that of the sequence designer so all the composite designers can avail to it and have a consistent experience throughout their workflow authoring.

This is through:

  <ContentPresenter x:Uid="ContentPresenter_1" Content="{Binding}" Style='{x:Static sacdt:DesignerStylesDictionary.SequenceStyle}'/>

where sacdt is for System.Activities.Core.Presentation.Themes namespace in System.Core.Presentation assembly.

Thanks,

Kushal.

Comments

  • Anonymous
    November 23, 2009
    Now THATS a good one, thanks.  Just used this in my project, heheh.

  • Anonymous
    January 05, 2010
    I partially agree with you. I will try out the solution you are proposing for sure.Do i also get the control flow feature with the styling in other words if i have applied style for If/Else activity then how will i be able to connect through control flow in Flowchart designer and on the runtime will it act the similar way? I admit i am little reluctant to this change as in Beta1 days the life was much easier as i can just decorate my activity with .NET designer classes and wallah everything is achieved i do not quite need to do anything special. Thoughts???

  • Anonymous
    May 09, 2010
    Is this still available in the release? I get: error MC3050: Cannot find the type 'DesignerStylesDictionary'. Note that type names are case sensitive.

  • Anonymous
    October 06, 2010
    You need to add a reference to System.Activities.Core.Presentation. That is where DesignerStylesDictionary is defined.

  • Anonymous
    June 30, 2011
    Thanks for the tip, an example project would be great.