Author: DD85 | Posted on: 7/31/2009 4:00:41 AM | Views : 497

Hi,
What level of abstraction do you generally aim for when using / creating custom user controls? For example, if you made a navigation control comprised of image button controls with appropriate logic to set one image button at a time to appear highlighted (via changing the image source), how deeply would you aim to hard code it? Can you specify constructors for custom controls? It would be awesome to be able to pass an array of link values or an XML file to some navigation control and have it create the appropriate number of buttons, keeping the logic to select a button on a click event. It would be nice to be able to specify the selected / deselected image sources to. The result would be a totally reusable, abstracted control. Obviously it wouldn't be hard to just create a single instance, but that's not what I'm getting at.
Any thoughts..?
...

Go to the complete details ...