Here is my scenario :
- We have a custom While activity which can take an Activity<bool> as a condition in the designer.- We can program some predefined conditions with Activity<bool> (useful for complex conditions), and they can have some variables, for exemple "IsGreaterThanActivity" with arguments "Number1" and "Number2".- Some of the conditions have internal states (for exemple, the current position in a list). We don't wan't to show them in the designer, it's implementation detail (so they use AddImplementationVariable). - Our custom While activity schedule the condition, if true his body, and so on... So, to not lose the internal state of the condition between executions, it would be nice to add an implementation variable to the custom while activity, and "bind" the condition state by an InArgument to the while.- We do not want to show the state in the designer (it should always be binded, so we do the binding in the CacheMetadata).
But if we do a AddImplementationChild to add the condition in the CacheMetadata, the condition won't find design time variables / arguments. So we need to do a AddChild. But if we do AddChild, we can't get the implementation variable to store the state. And if we use the AddVariable, in the xaml we see the variable decleration, so it's possible to alter them.
So is there any way to use
View Complete Post