locked
Rehosted Activity Designer with adornments. RRS feed

  • Question

  • I have rehosted the workflow using the WorkflowDesigner which shows the Tracking data (saved in the SQL Server)

    If any activity is in faulted state I want to highlight that activity with Red border.

    I followed the http://blogs.msdn.com/b/kushals/archive/2010/01/04/base-designer-with-additional-adornments.aspx 

    But I don't want to set it through the ResourceDictionary.

    I want the activity designer object in code so that I can change the border color of the activity.

    Is there any way to get the ActivityDesigner objects and change the style. 


    Regards,
    Jaydeep

    Friday, October 19, 2012 2:41 PM

Answers

  • Why not use the resource dictionary to set it to bind to some attached property?
    Then you can modify the attached property when you want the border color to change.
    Tim
    • Proposed as answer by Tim Lovell-Smith Monday, October 29, 2012 5:41 AM
    • Marked as answer by LeoTang Wednesday, November 21, 2012 1:55 AM
    Monday, October 29, 2012 5:41 AM