简体   繁体   English

我写了一个C#程序。 我可以把它放在我的WP7手机上吗?

[英]I've written a C# program. Can I put it on my WP7 phone?

I'd like to convert my program to a WP7 app. 我想将我的程序转换为WP7应用程序。 It's written in C# and basically just stores my blood sugar readings and it can also display a graph based on that data. 它是用C#编写的,基本上只存储我的血糖读数,它还可以显示基于该数据的图形。

I'm assuming I'll have to re-write the program in Silverlight, but I was wondering if anyone else had tried something like this (making a C# program into a WP7 app) and what advice they could offer? 我假设我必须在Silverlight中重新编写程序,但我想知道是否有其他人尝试过这样的东西(将C#程序变成WP7应用程序)以及他们可以提供什么建议? For instance, a web site that talks about converting a .Net program to WP7 format? 例如,一个谈论将.Net程序转换为WP7格式的网站?

Thanks for any advice! 谢谢你的建议!

EDIT: The existing interface is WinForm. 编辑:现有的界面是WinForm。 I can change that to WPF, if need be. 如果需要,我可以将其更改为WPF。 I just wasn't sure about the process and thought maybe someone here had gone through it before and could offer advice. 我只是不确定这个过程,并且想到也许有人在此之前已经完成过并可以提供建议。

You can convert it to run on Windows Phone, but it will require a significant effort, as the current program is developed using Windows Forms. 您可以将其转换为在Windows Phone上运行,但由于当前程序是使用Windows窗体开发的,因此需要付出很大的努力。 Windows Phone uses a version of Silverlight - which will likely mean that your logic will work as-is, but the user interface will need to be rewritten. Windows Phone使用Silverlight版本 - 这可能意味着您的逻辑将按原样运行,但需要重写用户界面。

That being said, typically, a desktop-developed application will always need a fair bit of working to function correctly, and meaningfully, in a phone's form and shape. 话虽如此,通常情况下,桌面开发的应用程序总是需要一些工作才能正确,有意义地以手机的形式和形状运行。 The overall interface size and design typically has to be modified. 通常必须修改整体界面尺寸和设计。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我已经使用Visual Studio为C#程序创建了一个数据库表。 怎么办? - I've created a database table using Visual Studio for my C# program. Now what? 如何在C#wp7 silverlight中实现自己的异步回调? - How can I implement my own async callback in C# wp7 silverlight? 编码为WP7的我的C#应用​​程序无法在部署后的WP8手机上正常启动 - My C# app coded for WP7 will not launch properly on WP8 phone with deployment 如何在不退出WP7中程序的情况下使用SaveContactTask? - How can I use SaveContactTask without exiting program in WP7? 如何在Silverlight C#for WP7中使用NavigationService作为同步回调的结果? - How can I use the NavigationService as a result of a synchronous callback in Silverlight C# for WP7? WP7(Windows Phone 7)在XAML或C#中锁定手机方向 - WP7 (Windows phone 7) Lock phone orientation in XAML or C# 我可以在wp7中运行.exe文件吗 - Can I run .exe file in wp7 我可以通过C#接收调制解调器的电话 - Can I receive a phone call over my modem in C# 创建一个只能由我的程序使用的文件。 我如何区别于其他程序的文件? - Creating a file that can be only used by my program. How do I differ it from other programs' files? 如何使用接口和C#重写用抽象类编写的程序? - How can I rewrite a program that was written with abstract class using interface and C#?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM