Monday, August 02, 2004

Smart Tags in Whidbey

Similar to Office XP, in Whidbey you can see smart tags in many places (Both in Designers and in Code Editor), which helps you in do your comon tasks with out moving to different menus.

Smart Tag in DataGrid:


Smart Tag in Mask Control:

3 comments:

Rohan said...

I don't get smary tags when i select the user defined controls (that I have made) in Whidbey Beta 1. Bug, or am I missing something?

ArunGG_MVP said...

Component and custom control authors can also add smart tag support, typically by using the push model.

Adding smart tags with the push model requires the following additions to the component project:

Implementation of a class, derived from DesignerActionList, that defines the methods and properties that are targets of the smart tag menu items. This class must also supply an overridden GetSortedActionItems method that returns an array of DesignerActionItem instances.

The designer class associated with the component must implement the ActionLists property. Retrieving this property supplies the DesignerActionListCollection that contains all the DesignerActionList instances associated with a single smart tag menu. Often there is only one list in such a collection.

Check this article for more details: http://msdn2.microsoft.com/library/s3fbkzsa.aspx

ArunGG_MVP said...

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsmarttag/html/odc_stvbnet.asp

Chekc this article for info on how to create smart tags in the present VS.