Can WF4 create a constructor for a compound action?

I know how to connect design activity to NativeActivity or CodeActivity with the Designer attribute in the class. For instance:

[Designer(typeof(ParallelActivityDesigner))] 

I would also like to connect the constructor to composite activity (consisting of some actions only in the xaml file), is this possible at all?

+4
source share
3 answers

Three well-known methods:

  • Have the code file next to .xaml.cs and use [DesignerAttribute] as in your question
  • [DesignerAttribute] by manually editing the XAML file
  • Using metadata registration to register custom attributes during development is easiest in a re-script, but it is also possible to use .Design.dll inside VS.

(Ref Workflow Beta2 Forum for information on the first 2)

+3
source

You can do it, check out the sample SDK for creating custom designers using WorkflowItemPresenter or WorkflowItemsPresenter

http://msdn.microsoft.com/en-us/library/system.activities.presentation.workflowitempresenter.aspx http://msdn.microsoft.com/en-us/library/dd759032.aspx

- matte

+1
source

I definitely did not understand this. It should be possible, but I did not understand the exact format that the designer should be. The best place for information is Matt Winkler (PM in the designer team) at http://blogs.msdn.com/mwinkle

0
source

All Articles