When I create a task with activity "CreateTaskWithContentType", I can't bind a custom ContentType with the list "Tasks".
For the moment I try to bind my CT with the correct path in properties windows and by this way in file "Workflow1.cs":
task1.ContentTypeId1 = "0x01080100c3f79a5973a84faaab4ac83e939ec5ef";
ContentTypeId1 is an DependencyProperty of task1.
But it doesn't work. The CT is on my solution because when I check it in "Site Settings/Site Content Type", I find it.
Do you have any idea how I can do this ?