在Silverlight应用程序中转换桌面应用程序(在C#中) [英] Tranform a desktop app (in C#) inSilverlight app

查看:56
本文介绍了在Silverlight应用程序中转换桌面应用程序(在C#中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我想创建 一个包含照片编辑器的Web应用程序。但是照片编辑器在C#中。我不知道如何将C#项目(照片编辑器)放在网站中(我将在Expression Blend 4中创建).Can你能帮助我吗?

I want to create  a web application which contain a photo editor.But the photo editor is in C#.I don't have any idea how to put the C# project (the photo editor) in the site(which i will create in Expression Blend 4).Can you please help me?

我不想从一开始就用照片编辑器开始,因为这是我去年创建的。

I don't want to start from the beginning with photo editor because this one i had already created last year.

现在我的老师告诉我要把这个应用程序变成一个在线应用程序。不只是桌面应用程序。

Now my teacher told me to make this application to be an online application.Not only a desktop one.

非常感谢!

推荐答案

Silverlight是一个与主.NET框架不同的框架。如果您的照片编辑器是用.Net框架编写的,则不能直接在Silverlight中使用它。最简单的方式, 在您正在使用的Silverlight项目中,导入现有项目并添加
这些照片编辑器C#文件。由于大多数DLL都是相同的名称,因此您的照片编辑器可能适用于Silverlight。如果它抱怨某些引用dll无法找到,则必须复制这些代码部分并在Silverlight中重写它。

Silverlight is a different framework than the main .NET framework. If your photo editor was written in .Net framework, you can't use it directly in Silverlight. The simplest way,  in the Silverlight project you are using, import exiting items and add those photo editor C# files. Because most of DLL are the same names, your photo editor might work in Silverlight. If it complains some reference dll cannot be found, you have to copy those parts of codes and rewrite it in Silverlight.


这篇关于在Silverlight应用程序中转换桌面应用程序(在C#中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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