Argument validation in custom activity designer

夙愿已清 提交于 2019-12-04 09:19:02

I encountered the problem I described here while trying to create a designer for a dynamic collection of arguments in an activity. I managed to work around the problem by using the built-in DynamicArgumentDialog window. I had to restructure my activity to accept a single collection of both input and output arguments:

public Dictionary<string, Argument> Arguments { get; set; }

instead of two separate collections I was using before:

public Dictionary<string, InArgument> InArguments { get; set; }
public Dictionary<string, OutArgument> OutArguments { get; set; }

I found the Custom Activity to Invoke XAML Based Child Workflows very helpful when making this work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!