创建鼠标和触摸式WPF应用程序的最佳实践 [英] Best practices for creating both mouse and touch-oriented WPF application

查看:101
本文介绍了创建鼠标和触摸式WPF应用程序的最佳实践的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

需要开发一种支持鼠标和触摸输入的WPF应用程序.我正在寻找一种方法,该方法将能够维护单个代码库并最大程度地减少实现该代码库的麻烦.可能有一些框架或构建配置-类似于Project Linker +预处理程序指令方案,该方案用于在单个项目中同时将WPF和Silverlight平台作为目标.提前致谢.
编辑 示例场景:应用程序具有允许用户将多张照片上传到服务器的控件.文件选择框支持使用鼠标拖放,还必须支持一些手势才能添加新文件.

There is a need to develop WPF application which will support both mouse and touch input. I'm looking for an approach that will enable maintaining single codebase and minimize pain to implement that. Some framework or build configuration maybe - something like Project Linker + preprocessor directives scenario that is used to multi-target both WPF and Silverlight platforms in single project. Thanks in advance.
edit Sample scenario : application has control that allows user upload multiple photos onto server. File selection box supports drag'n'drop with mouse, also it has to support some gesture to add new files.

推荐答案

检查 查看全文

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