Custom listview control for windows mobile in c#
I need to develop a custom listview control (ie, i need two labels and a progress bar in each list item) . I am n开发者_开发问答ew to windows mobile so please help me with code samples.
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.
精彩评论