Category: Design Time Support

  • Enabling Design Time Template Editing

    Few days ago, I blogged about how to enable auto formats in the design time smart tag by overriding simple property, this post will describe how to enable design time template editing in a similar simple way.   [more] The following steps will show how to do this in your template controls, assuming you already…

  • Adding Auto Format for ASP.NET Custom Controls Design Time

    Back to design time support, but this time with ASP.NET server controls, most complex & simple controls built in the .NET framework are associated with an Auto Format.. link in the smart tag as the one shown in the figure, I showed in a previous post how to add links and properties to the smart…

  • Custom Controls Design Time Support Part 15: Debugging Design Time

    This is final part of my series/tutorial on design time support, it was really fun writing it and hearing your comments and suggestions, I really learnt alot and hope you too had some experience in writing design time support for the custom controls. In this part, I will show you how to debug the design…

  • Custom Controls Design Time Support Part 14: Extra Property Tab

    The default PropetryWindow in the visual studio shows 2 Tabs one for properties and another for events. If one day you thought that you have set of members might be Properties that you need to put them in an extra property tab then in this post you will learn how to put extra tabs. When…

  • Custom Controls Design Time Support Part 13: Adding Snaplines

    Another new feature added in the Design Time Environment in visual studio 2005 and 2008 for windows forms and windows user controls designers is the Snaplines. What is a snapline? A snapline is a dynamically generated UI layout guide line. Snaplines are generated during control move operations in the designer. The location of other controls…

  • Custom Controls Design Time Support Part 12: Adding SmartTag

    One more advantage you get from building a custom designer for your custom controls is that you can add smart tag panel to add important most used properties and methods. What is a Smart Tag? SmartTag is one of the new enhancement of VisualStudio 2005 design time and VS 2008 as well. Smart tags are…

  • Custom Controls Design Time Support Part 11: Designer Verbs

    This post is simple and neat, the goal now is to add some designer verbs, so lets get straight. What is a Designer Verb? A designer can use the DesignerVerb class to add menu commands to the shortcut menu for the component it provides designer support for in design mode. Designer verbs associate a menu…

  • Custom Controls Design Time Support Part 10: Filtering Control Members

    As I  mentioned in introducing the Designer post that one of the designer powers is filtering the control members, filtering here means removing or adding members (Properties, Events or Attributes) to the DesignTime Environment in the PropertyWindow. The IDesignerFilter interface has the methods that enable filtering the members that appear in the Design time PropertyWindow.  The…

  • Custom Controls Design Time Support Part 9: Introducing the Designer

    What is a Designer? Designers are objects that have the ability to modify a component’s design time behavior on a design surface. A designer can display a component’s user interface as well as allow property changes to the component. It can also provide other services and perform additional processing specific to the component it is…

  • Custom Controls Design Time Support Part 8: Implementing UITypeEditor

    In the previous post I gave a brief introduction on what is a UITypeEditor and what you can get from using it, this part I will show you how to implement one. So here are the steps: Define a class that derives from System.Drawing.Design.UITypeEditor. Override GetEditStyle to return a supported UITypeEditorEditStyle. Override EditValue and pass…