开发者

Custom listview control for windows mobile in c#

开发者 https://www.devze.com 2022-12-11 14:15 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消