如何为触摸屏编写winform应用程序 [英] How to write winform applications for touch screens

查看:103
本文介绍了如何为触摸屏编写winform应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨。

我正在使用Windows窗体编写Windows应用程序。我需要在触摸屏上运行它。用户不使用键盘或鼠标的地方。我的问题是,我是否必须使用一些库或额外的文件或系统会自动检测界面?



我尝试过:



我搜索过但我找不到任何相关的答案。

Hi.
I am writing a windows application using windows form. I need to run it on a touchscreen. where the user will not use the keyboard or mouse. My question is, Do I have to use some libraries or extra files or system will automatically detect the interface?

What I have tried:

I've searched but I could not find any relevant answer.

推荐答案

你没有真的不得不担心 - 或者至少这是我在触摸平板电脑上使用Win10的体验。它只是工作!点击鼠标即可触摸,长按鼠标右键点击。拖放工作 - 虽然它可以用Windows资源管理器进行繁琐 - 软键盘可以由用户调出(有时当他进入输入字段时会自动出现)。虽然它确实占用了相当大的屏幕空间,因此值得设计你的应用程序:在桌面顶部而不是底部的小对话框中输入。



粗略地使用原型的UI,并尝试作为用户。看看有什么用,以及阻碍了什么。
You don't really have to worry - or at least that's been my experience with Win10 on a touch tablet. It just works! Touches are quatred to mouse clicks, long touches to mouse right clicks. Drag and drop works - though it can be fiddly with Windows Explorer - and the soft keyboard can be brought up by the user (and sometimes comes up automatically when he enters an input field). It does take considerable screen real estate though, so it's worth designing your app with that in mind: take input in small dialogs that sit at the top of the desktop rather than the bottom for example.

Rough out your UI for a prototype, and give it a try as a user. See what works, and what gets in the way.


这篇关于如何为触摸屏编写winform应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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