I’m trying to write a custom activity designer for Windows Workflow that allows the user to bind an activity parameter in the design window (as opposed to using the Visual Studio properties dialog). Normally, I’d just write something like this:
<sapv:ExpressionTextBox Grid.Row="0" Grid.Column="1" OwnerActivity="{Binding Path=ModelItem}" Expression="{Binding Path=ModelItem.Strings, Mode=TwoWay, Converter={StaticResource ArgumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="??s:String[]??" HintText="The strings to combine." />
The problem in this case (as can be seen in the above) is that I don’t know what the ExpressionType should be for an array type. Assuming a namespace specification of xmlns:s="clr-namespace:System;assembly=mscorlib", for a string, it would be s:String. Is it possible to do the same thing for a string array? And if so, how please?
Have you tried using the designer to specify the array type, then examine the resulting XML?