PocketPC 平台上的智能手机式 ComboBox 行为?
我为 PocketPC 平台(.NET Compact Framework 2.0 及更高版本)开发应用程序,我经常遇到的问题之一是 ComboBox 控件的下拉宽度不够宽,无法显示很长的字符串值。
我曾经使用过 P/Invoke 方法来加宽下拉列表宽度,但我真正想要的是 ComboBox 的智能手机风格行为。 我的意思是,初始视图是旋转控件的视图(滚动浏览选项列表的左/右箭头),如果您单击操作按钮,它将带您全屏显示所有选项,这非常重要更容易阅读。
我想我可以创建一个自定义用户控件来模拟 PocketPC 上的这种行为,但我想知道是否可以获取实际的智能手机功能并使用它。 如果可能的话,利用现有功能肯定会更快。
I develop applications for the PocketPC platform (.NET Compact Framework 2.0 and higher), and one of the problems I constantly run in to is the drop-down width for ComboBox controls is not wide enough to show very long string values.
I've run across P/Invoke methods to widen the dropdown width, but what I'd really like to have is the Smartphone-style behavior for ComboBoxes. By this, I mean the initial view is that of a Spin Control (left/right arrows that scroll through the option list), and if you click the action button it takes you to a full-screen rendition of all the options that is much easier to read.
I think I could create a custom user control to simulate this behavior on the PocketPC, but I would like to know if it's possible to get at the actual Smartphone functionality and use that. It would definitely be faster to tap into existing functionality if possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这是不可能的,因为 ComboBox 中的行为正是 PocketPC 智能手机操作系统处理 ComboBox 的方式。 如果您使用 ComboBox 编译智能手机应用程序并在常规 PocketPC 中运行它,则 ComboBox 不会那样工作(我认为)。
I don't think this is possible, because that behavior in a ComboBox is just how the PocketPC smartphone OS handles ComboBoxes. If you compile a smartphone app with a ComboBox and run it in regular PocketPC, the ComboBox won't behave that way (I think).