Winform: Radio button logic with another look and feel?

别来无恙 提交于 2019-12-25 03:52:48

问题


I need to implement a radio button logic(multiple possibilities, one choice) with another look and feel.

The look and feel should be similar to this:

Meaning: an image, a title and a small description, no radio button but a border for the selected one.

I want to know if you know any existing components that can do this(in c# or in devexpress library) or if I have to implement this myself.

Thank you!


回答1:


This looks like a list view, not a radio box. See MSDN help here.

View.Details enumeration:

Each item appears on a separate line with further information about each item arranged in columns. The left-most column contains a small icon and label, and subsequent columns contain sub items as specified by the application. A column displays a header which can display a caption for the column. The user can resize each column at run time.

View.Tile enumeration

Each item appears as a full-sized icon with the item label and subitem information to the right of it. The subitem information that appears is specified by the application. This view is available only on Windows XP and the Windows Server 2003 family. On earlier operating systems, this value is ignored and the ListView control displays in the LargeIcon view.




回答2:


With RadioButton you can set Appearance=Button, use also Image property.




回答3:


I finally found the DevExpress SimpleButton components that could do such behavior



来源:https://stackoverflow.com/questions/15500882/winform-radio-button-logic-with-another-look-and-feel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!