Partager via


Toolbox Tooltips and Icons

In regards to Toolbox, another common question I get is how can we get the Tooltips and icons for our custom activities.

Well, quite simple actually:

1. Description attribute for the Tooltip

2. ToolboxBitmap attribute for the Icon

Have both these attributes for your custom activity and once this activity appears in the Toolbox, you would have the tooltip on hover with the description and the icon you added.

Of course, this is not just for the code activities, but can also be done for the custom declarative(Xaml) activities. This would be through the

 builder.AddCustomAttributes(typeof(Prompt), new DesignerAttribute(typeof(MyDesignerWithStyling)));
builder.AddCustomAttributes(typeof(Prompt), new DescriptionAttribute("My Prompt Activity"));

- Exactly same as associating a designer to the activity.

Thanks,

Kushal.

Comments

  • Anonymous
    February 10, 2010
    The comment has been removed