views:

1363

answers:

3

I need to develop a custom listview control (ie, i need two labels and a progress bar in each list item) . I am new to windows mobile so please help me with code samples.

+4  A: 

Customizing the ListView from C# is difficult - bordering on insane in fact. Your requirements aren't too terrible since you only want to draw (i.e. you don't want a TextBox or other input type control in an item), so it makes it at least somewhat manageable, but it still requires a lot of P/Invoke shenanigans.

Christian Helle has a decent blog post that covers custom-draw ListViews in the CF that would be a good start if you don't know where to begin.

ctacke
Excellent find Chris!
hjb417
+1  A: 

A great example how tricky might be the use of standard ListView, and other controls when developing mobile apps is the following article: http://www.codeproject.com/KB/showcase/CF%5FDevelopment.aspx.

Ivan
A: 

i found a nice and working example Here though the above link is using pure paint method your can also blend it to add custom controls by play with it

Manjunath