c# - Need design advice for custom list control in .NET Windows Forms -


first of all, here's concept art how custom list control must look:

http://img816.imageshack.us/img816/1088/customlistctrl.png

each list item complex , turns "edit interface" when mouse hovers on it. have png image files every skinning detail of thing, including scroll bar.

what best approach started implementing this? create custom control , render of in gdi?

could make list control transparent clip region scroll bar? individual list items, use textured panel backdrop each item , place existing .net forms (like combo boxes, buttons, edit fields, etc) children of that?

i've never had create detailed before.

if want control exactly given picture (which nice), end drawing of it, if not of it, yourself. 1 possibility subclass each control being used , override onpaint method custom drawing. assumes design in picture individual control.

i myself might make each row separate usercontrol-derived class, perhaps internal constructor users of control can't create row directly. within skinnedlistrow class (or whatever name), have each of subcontrols. looks of things, row contains 3 controls display numbers , 1 displays kind of text.

for editing portion, derive usercontrol contains controls picture. both display controls , editing control owned skinnedlistrow above, knows how load data 1 set another.

you have amount of work in front of you, idea looks nice. luck.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -