我用谷歌搜索了一下,似乎找不到任何 Xaml-fying 活动的例子——好、坏或其他!
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;
}
提示,提示,指针将受到欢迎:)
注意:所以找到了这个。一旦工作,将通过并更新。无论如何,任何人都想击败我。更好的是,如果您能找到摆脱 WorkflowDesigner 的方法,这似乎很奇怪。