I'm reading Bruce Bukovics Pro WF4 book and in chapter 16 - Advanced Customer Activites, he details emulating a Sequence activity along with a custom designer. When I drop the custom activity into a new xaml activity, I'm getting all sorts of wierdness.
The custom sequence activity has a condition property that determines whether to schedule each child activity contained within. Once I set a value in the ExpressionTextBox for the activity, Visual Studio starts showing in red "Could not generate view for VisualBasicValue`1"
along with this error showing up in my error window:
The activity 'VisualBasicValue<Boolean>' cannot be referenced by activity 'MySequence' because the latter is not in another activity's implementation. An activity can only be referenced by the implementation of an activity which specifies that
activity as a child or import. Activity 'VisualBasicValue<Boolean>' is declared by activity 'MySequence'.
Here is the source for the activity itself:
public sealed class MySequence : NativeActivity
View Complete Post