I am new to .NET 4 and I am looking for a way to design a custom activity that accepts a list of some type (in my example FormInput
). So, each instance of this activity can hold its own private list of FormInput.
This codesnippet is from the activity designer what I have trying to, which for some reason, doesn't work. The datagrid is disabled when using my activity in a workflow.
<Grid>...
<DataGrid AutomationProperties.AutomationId="InputElements"
ItemsSource="{Binding Path=ModelItem.InputElements}" CanUserAddRows="True"
CanUserDeleteRows="True"></DataGrid>
...
</Grid>
And this is the property of the custom Activity class that should hold the list.
public ObservableCollection<FormInput> InputElements
Any help is appreciated.