ASP.Net自定义按钮列表触摸屏界面的复合控件

发布于 2024-07-27 14:59:35 字数 385 浏览 2 评论 0原文

我正在开发一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光沙漏 2024-08-03 14:59:35

您可以使用现有控件来执行此操作 - 请参阅此处查看示例。 在考虑扩展现有控件或编写自定义控件之前,先看看这是否满足您的要求。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文