I have a custom activity, with a single in argument which is a string. However, rather than allow the designer to enter an arbitrary string, I want the designer to be presen
Normally, I would write the activity with a property
rather than an InArgument
. This simplifies the scenario:
(here ValidOptions is some Collection property on your ActivityDesigner class. MyStringProperty is some public get/set/ property on the underlying activity such as:
public string MyStringProperty { get; set; }
)
The problem you will have if you add InArgument
to the mix is that the string values from the combo box cannot be directly assigned to a ModelItem
expecting InArgument
. This is fixable using a custom IValueConverter
in your binding.