在silverlight中重用文件流 [英] Reuse a filestream in silverlight

查看:104
本文介绍了在silverlight中重用文件流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上需要实现Word在我的Silverlight应用程序中重写已保存文件的功能,而没有SaveFileDialog再次提示输入文件名。



当我想第一次保存文件时,我打开SaveFileDialog框。之后,我希望保留fileStream,以便在我的contenr中进行更改后,我可以再次保存该文件而不再使用SaveFileDialog提示再次保存带有名称的文件,就像我们在word或记事本中所做的那样,即我想要覆盖已打开的文件。



任何人都可以建议如何做到这一点,因为出于安全原因我无法保存完整的文件路径。 ??

I actually need to implement Word like functionality of re-writing an already saved file in my Silverlight application without SaveFileDialog prompting again for the name of the file.

I open up SaveFileDialog box when I want to save the file for the first time. After that I want that fileStream should be preserved so that after I make changes in my contenr, I can simply save that file again without SaveFileDialog prompting again to save file with a name, just like we do in word or notepad, i.e. I want to overwrite the already opened file.

Can anyone please suggest how it can be done so, since I am not able to save the full file path due to security reasons..??

推荐答案

这篇关于在silverlight中重用文件流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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