使用Access数据库将WPF应用程序转换为Silverlight

时间:2021-09-12 18:14:24

I was wondering if it is possible to convert a wpf application to silverlight without days of work.

我想知道是否有可能在没有工作日的情况下将wpf应用程序转换为silverlight。

Yes, i know there's a similar post, but dates from 2008, so outdated according to me because of the fast progress in silverlight.

是的,我知道有一个类似的帖子,但是可以追溯到2008年,因为银光的快速进步,所以我已经过时了。

i have a wpf application that uses a 2003 access database (orders :)) and my client wants a silverlight version as well.

我有一个使用2003访问数据库(订单:)的wpf应用程序,我的客户也想要一个silverlight版本。

Any ideas on time and effort? Thanks in advance.

任何关于时间和精力的想法?提前致谢。

3 个解决方案

#1


3  

Unless you're not using any significant WPF visual features, I don't think you can avoid significant effort. Even just Triggers and Actions are significantly less featured. Even under Silverlight 4 there are still huge differences in what the XAML can support, and you'd still be looking at a server side data source (probably over WCF) so you'd have to build out the set of services and such.

除非您没有使用任何重要的WPF视觉功能,否则我认为您无法避免重大努力。即使只是触发器和动作也没那么明显。即使在Silverlight 4下,XAML可以支持的内容仍然存在巨大差异,您仍然需要查看服务器端数据源(可能在WCF上),因此您必须构建一组服务等。

Using something like WCF Data Services may make the back end transition easier, but even just the differences in control set are going to create a lot of work on the UI.

使用类似WCF数据服务的东西可以使后端转换更容易,但即使只是控件集的差异也会在UI上创建大量工作。

While it is possible to limit yourself to a subset and get some functionality (mostly if you use one of the cross platform toolkits for your controls), retrofitting it onto a complete application is likely as difficult as redeveloping it in Silverlight.

虽然可以将自己限制为一个子集并获得一些功能(主要是如果您使用其中一个跨平台工具包作为控件),将其改装到完整的应用程序可能与在Silverlight中重新开发它一样困难。

#2


1  

You will be able to use Silverlight RIA services and can connect to Access DB, It will be relatively easy port unless you used plenty of non portable WPF features.

您将能够使用Silverlight RIA服务并可以连接到Access DB,除非您使用了大量非便携式WPF功能,否则它将是相对容易的端口。

#3


0  

Thanks to all responses. I had a project needed to be done in wpf. I've spent about 3 weeks working on it, and it was finished. Every week, i needed to show my progress. When at consult 3 days for deadline and presentation, i said i was about done except for the small bug fixes. My teacher at college gave me the chance to earn some extra points. So he asked me if i could convert my wpf-application to silverlight. I had 2 days to do this.

感谢所有回复。我有一个项目需要在wpf中完成。我花了大约3个星期的时间来完成它,它已经完成了。每周,我都需要展示自己的进步。在咨询截止日期和演示文稿的3天时,我说除了小错误修复之外我已经完成了。我在大学的老师给了我一些额外积分的机会。所以他问我是否可以将我的wpf应用程序转换为silverlight。我有2天的时间来做这件事。

When i showed my wpf project durign presentation, he was satisfied with the result. Then he asked me about the silverlight. I came with some arguments you guys posted, and he totally agreed. The little bugger knew it wasn't really going to happen (at least not in 2 days).

当我展示我的wpf项目durign演示时,他对结果感到满意。然后他问我银光。我带来了一些你们发布的论据,他完全同意了。这个小家伙知道它不会真的发生(至少在2天内不会发生)。

So thanks for posting and not let me work my ass of for those 2 days.

所以感谢发帖,不要让我为这两天工作。

#1


3  

Unless you're not using any significant WPF visual features, I don't think you can avoid significant effort. Even just Triggers and Actions are significantly less featured. Even under Silverlight 4 there are still huge differences in what the XAML can support, and you'd still be looking at a server side data source (probably over WCF) so you'd have to build out the set of services and such.

除非您没有使用任何重要的WPF视觉功能,否则我认为您无法避免重大努力。即使只是触发器和动作也没那么明显。即使在Silverlight 4下,XAML可以支持的内容仍然存在巨大差异,您仍然需要查看服务器端数据源(可能在WCF上),因此您必须构建一组服务等。

Using something like WCF Data Services may make the back end transition easier, but even just the differences in control set are going to create a lot of work on the UI.

使用类似WCF数据服务的东西可以使后端转换更容易,但即使只是控件集的差异也会在UI上创建大量工作。

While it is possible to limit yourself to a subset and get some functionality (mostly if you use one of the cross platform toolkits for your controls), retrofitting it onto a complete application is likely as difficult as redeveloping it in Silverlight.

虽然可以将自己限制为一个子集并获得一些功能(主要是如果您使用其中一个跨平台工具包作为控件),将其改装到完整的应用程序可能与在Silverlight中重新开发它一样困难。

#2


1  

You will be able to use Silverlight RIA services and can connect to Access DB, It will be relatively easy port unless you used plenty of non portable WPF features.

您将能够使用Silverlight RIA服务并可以连接到Access DB,除非您使用了大量非便携式WPF功能,否则它将是相对容易的端口。

#3


0  

Thanks to all responses. I had a project needed to be done in wpf. I've spent about 3 weeks working on it, and it was finished. Every week, i needed to show my progress. When at consult 3 days for deadline and presentation, i said i was about done except for the small bug fixes. My teacher at college gave me the chance to earn some extra points. So he asked me if i could convert my wpf-application to silverlight. I had 2 days to do this.

感谢所有回复。我有一个项目需要在wpf中完成。我花了大约3个星期的时间来完成它,它已经完成了。每周,我都需要展示自己的进步。在咨询截止日期和演示文稿的3天时,我说除了小错误修复之外我已经完成了。我在大学的老师给了我一些额外积分的机会。所以他问我是否可以将我的wpf应用程序转换为silverlight。我有2天的时间来做这件事。

When i showed my wpf project durign presentation, he was satisfied with the result. Then he asked me about the silverlight. I came with some arguments you guys posted, and he totally agreed. The little bugger knew it wasn't really going to happen (at least not in 2 days).

当我展示我的wpf项目durign演示时,他对结果感到满意。然后他问我银光。我带来了一些你们发布的论据,他完全同意了。这个小家伙知道它不会真的发生(至少在2天内不会发生)。

So thanks for posting and not let me work my ass of for those 2 days.

所以感谢发帖,不要让我为这两天工作。