在C#中设置列表框样式 [英] Styling a listbox in C#

查看:77
本文介绍了在C#中设置列表框样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



有没有办法让我在c#中设置我的列表框样式,看起来像提供的图像?或者类似于图像?如果我的列表框(显示本周成员的生日)很简单,我的应用程序看起来真的很无聊。我真的很想如果列表框项目看起来像提供的图像或至少接近它。或者只是比普通的普通老式c#列表盒好多了! :P $ / $


图像列表框

推荐答案

简答:



您使用的是像

System.Windows.Forms.ListView (Windows窗体)或

Windows.UI.Controls .ListView (WPF)



对于像我这样具有多年经验的人,在难度,计划和所需时间方面:



Windows Forms更难,需要4-8建造良好的时间。查找覆盖OnPaint



WPF是其中的一半。查找控件模板的自定义。
Short answer:

You are either using something like
System.Windows.Forms.ListView (Windows Forms) OR
Windows.UI.Controls.ListView (WPF)

For someone like me with many years of experience with both, in terms of difficulty, planning, and time required:

Windows Forms is more difficult and would take 4-8 hours for something well built. Look up overriding OnPaint

WPF is half of that. Look up customization of control templates.


这篇关于在C#中设置列表框样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆