WF4RC, How to: Activity to Xaml?

Posted by johnny g on Stack Overflow See other posts from Stack Overflow or by johnny g
Published on 2010-02-25T19:38:22Z Indexed on 2010/03/24 19:13 UTC
Read the original article Hit count: 230

Hello all,

I have Googled a bit, and cannot seem to find any examples of Xaml-fying Activities - good, bad, or otherwise!

public static string ToXaml (this Activity activity)
{
    // i would use ActivityXamlServices to go from Xaml
    // to activity, but how to go other way? documentation
    // is slim, and cannot infer proper usage of 
    // ActivityXamlServices from Xml remarks :S
    string xaml = string.Empty;
    return xaml;
}

Hints, tips, pointers would be welcome :)


NOTE: so found this. Will work through and update once working. Anyone wanna beat me to the punch, by all means. Better yet, if you can find a way to be rid of WorkflowDesigner, seems odd it is required.

© Stack Overflow or respective owner

Related posts about xaml

Related posts about workflow-foundation-4