locked
How to define generic type activity in designer xaml RRS feed

  • Question

  • Hello, could you tell me how to define a generic type in xaml when I implement a custom host for activities??

              <sapt:ToolboxItemWrapper AssemblyName="{StaticResource Assembly}">
                <sapt:ToolboxItemWrapper.ToolName>
                  System.Activities.Statements.If
                </sapt:ToolboxItemWrapper.ToolName>
              </sapt:ToolboxItemWrapper>
    
    Switch<T> ??
    Friday, July 9, 2010 8:38 AM

Answers

  • No. In designer rehosting you must specify type name.

    This work for generic activities

              <sapt:ToolboxItemWrapper AssemblyName="{StaticResource AssemblyName}" >
                <sapt:ToolboxItemWrapper.ToolName>
                  System.Activities.Statements.Switch`1 
                </sapt:ToolboxItemWrapper.ToolName>
              </sapt:ToolboxItemWrapper>
    
    Friday, July 9, 2010 8:03 PM