ASP.Net自定义按钮列表触摸屏界面的复合控件
我正在开发一个 ASP.Net Web 应用程序,需要在 Kiosk/触摸屏环境中运行。 现有的 ASP.Net Web 控件不太适合触摸屏,因为它们似乎更适合鼠标/触摸板。
当当权者决定我们需要某种类似于 ASP.Net 单选按钮列表的复合控件时,烫手山芋落在了我的腿上,但我希望这些项目显示为大橡胶按钮,而不是单选按钮。 例如,所选项目的按钮需要缩进或以某种方式以图形方式描述。
我仍然需要访问 selecteditem/selectedvalue 类型属性来确定选择的内容...
实现此目的的最佳方法是什么? 创建覆盖单选按钮控件的自定义服务器控件或使用 .Net 控件“皮肤”文件以某种方式允许我通过 CSS 以图形方式更改标准单选按钮列表?
感谢您的意见。
I am developing an ASP.Net web app that needs to run in a Kiosk/Touch screen environment.
The existing ASP.Net web controls are not too touch-screen friendly as they seem better suited for a mouse/touchpad.
The hot potato dropped in my lap when the powers-that-be decided we need some sort of composite control similar to the ASP.Net Radio Button List, but instead of radio buttons I want the items to be displayed as large rubber buttons. The selected item's button needs to be indented for example or depict this graphically somehow.
I still need to have access to a selecteditem/ selectedvalue type property to determine what was selected...
What would be the best approach in achieving this? Creating a custom server control that overrides the radiobutton control or using a .Net control 'skin' file somehow that allows me to graphically alter a standard radio button list via CSS?
Your input is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用现有控件来执行此操作 - 请参阅此处查看示例。 在考虑扩展现有控件或编写自定义控件之前,先看看这是否满足您的要求。
You can do this with the existing control- see here for an example. See if that does what you require before considering extending an existing control or writing a custom one.