重写一个WPF应用程序,以表面重写、应用程序、表面、WPF

2023-09-06 08:58:35 作者:>个性女生名字

我工作的一个WPF应用程序,我很好奇怎样才能重写这个应用程序到应用面,如果我们想通过多点触控有一天能够去控制它。

I'm working on a WPF application, and I'm curious about what it would take to rewrite this application to a Surface application if we want to control it through multitouch some day.

是不是有可能,我们可以重复使用我们的WPF应用程序的大部件和传输它顺利地表面,或者是表面完全不同,我们可能不得不写表面一个全新的图形用户界面?或者,我可以真正的表面上使用WPF应用程序?正如你也许可以告诉我真的没有一个线索,在所有关于面 - 所以请告诉我什么明显的呢!

Is it likely that we can reuse big parts of our WPF application and transfer it smoothly to Surface, or is Surface completely different, and we probably have to write a completely new GUI for Surface? Or can I actually use WPF applications on Surface? As you maybe can tell I don't really have a clue at all regarding Surface - so please tell me anything obvious too!

我们做什么,我们就可以与视图和业务逻辑之间的良好分离的应用模式 - 使用MVVM模式等。但是,我们需要建立表面一个全新的图形用户界面?

We do what we can to model the application with good separation between the View and the business logic - using the MVVM pattern etc. But do we need to build a completely new GUI for surface?

推荐答案

如果你的目标很简单,就是多点触控添加到您真正应该看.NET 4.0在Windows 7中这样做,你就可以开始正常的桌面应用程序与现有的应用程序,只是添加任何多点触控功能,你觉得有用的。

If your goal is simply to add multi-touch to a normal desktop application you should really be looking at .NET 4.0 in Windows 7. Doing that you can start with your existing application and just add on any multi-touch features you find useful.

如果你真的到表面,主要的变化你会在你的code看,如果这样做的直接端口将改变所有的内置输入控件到地面的版本(即巴顿送:SurfaceButton )。这需要做支撑面的接点输入,不激活之类的东西Button.Click的标准控件。

If you do go to Surface, the primary changes you'd see in your code if doing a direct port would be changing all of the built-in input controls to the Surface versions (i.e. Button to s:SurfaceButton). This needs to be done to support Surface's Contact inputs, which don't activate things like Button.Click on the standard controls.

有与地面应用程序,你不能真正得到一个感觉只是用仿真器在桌面上多了一些重要的事。第一个是多用户体验,不仅包括数量巨大支持同时触摸,也UI的多方向取向。因为表面是水平屏用户可以来从任何侧应用程序和应用程序本身也可以被垂直翻转取决于哪个方向,用户开始从应用上。这可能需要很多心思围绕如何需要一个桌面应用程序的功能进行返工。表面也有1024×768固定的分辨率也可以为笨拙的转换,从对大屏幕做动态调整桌面应用程序。

There are a few more important concerns with Surface applications that you can't really get a feel for just using the emulator on your desktop. First is the multi-user experience, including not only the huge number of simultaneous touches it supports, but also the multi-directional orientation of the UI. Since the Surface is a horizontal screen users can come at the application from any side and the application itself can also be flipped vertically depending on which direction the user starts the application from. This can require a lot of thought around how the features of a desktop app need to be reworked. Surface also has a fixed resolution of 1024x768 which can also make for awkward transitions from dynamically sized desktop apps made for large screens.