Designer Attribute
Last changed: MauriceDeBeijer-80.126.16.139

.
Summary

The class you use for the design-time services must implement the IDesigner interface.

Use the DesignerBaseTypeName property to find the designer's base type. Use the DesignerTypeName property to get the name of the type of designer associated with this member. Use the ActivityDesignerTheme to customize the way the designer looks.

To hide all the internal workings on a CustomActivity you can decorate the activity type with the following: <Designer(typeof(ActivityDesigner), typeof(IDesigner))>

An alternative way:

namespace WorkflowLibrary1
{
   
    [Designer(typeof(MyDesigner),typeof(IDesigner))]
    public partial class ChangePageActivity: SequenceActivity
    {
        public ChangePageActivity()
        {
            InitializeComponent();
        }
    }

    public class MyDesigner : SequentialActivityDesigner
    {
        public override bool Expanded
        {
            get { return false; }
        }

        public override bool CanExpandCollapse
        {
            get { return false; }
        }
    }
}