在silverlight中重用文件流 [英] Reuse a filestream in 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屋!