如何将我的XAML内容保存到文件中?

时间:2022-01-25 09:54:35

I have a problem. I want to save a XAML state into a file, or something like this. I developed a Silverlight version of PowerPoint, and now i want to save my presentation, but i don't know how...i'm using Silverlight 3 beta(if helps)...

我有个问题。我想将XAML状态保存到文件中,或类似的东西。我开发了一个Silverlight版本的PowerPoint,现在我想保存我的演示文稿,但我不知道如何...我正在使用Silverlight 3 beta(如果有帮助)......

I would like to allow users to upload their photos, music and video file somewhere.....where and how can i do this?

我想允许用户在某处上传他们的照片,音乐和视频文件.....我在哪里以及如何做到这一点?

Thanks, Andrei.

2 个解决方案

#1


Well, that's a toughy. WPF has the Xaml Writer which can send that state out. Silverlight doesn't :(

嗯,这是一个艰难的。 WPF有Xaml Writer可以发送该状态。 Silverlight没有:(

What you're doing sounds a lot like Mike Harsh's Silverlight 3 sample. His source is available; Maybe that will provide a suitable approach.

你正在做的事听起来很像Mike Harsh的Silverlight 3样本。他的消息来源可用;也许这将提供一个合适的方法。

#2


I solved the problem by saving data in XML files. When i want to recreate the state of the app i set all the parameters from my XML file.

我通过在XML文件中保存数据来解决问题。当我想重新创建应用程序的状态时,我从我的XML文件中设置了所有参数。

#1


Well, that's a toughy. WPF has the Xaml Writer which can send that state out. Silverlight doesn't :(

嗯,这是一个艰难的。 WPF有Xaml Writer可以发送该状态。 Silverlight没有:(

What you're doing sounds a lot like Mike Harsh's Silverlight 3 sample. His source is available; Maybe that will provide a suitable approach.

你正在做的事听起来很像Mike Harsh的Silverlight 3样本。他的消息来源可用;也许这将提供一个合适的方法。

#2


I solved the problem by saving data in XML files. When i want to recreate the state of the app i set all the parameters from my XML file.

我通过在XML文件中保存数据来解决问题。当我想重新创建应用程序的状态时,我从我的XML文件中设置了所有参数。