I tried saving data from my rich text box using the TextRange to save in xamlpackage format, however my question is basic, what extension should the file have, if I use Xaml, the normal wpf xaml files would not be capable of opening as they are not xamlpackages, could you please tell me the proper extension for xamlpackage.

Thank you.

有帮助吗?

解决方案

XAML files are extension independent.

Extension are used in VS to be associated with XAML designer, and XAML compiler (to compile it to BAML, and .cs files)

If you need to load/save XAML, you should look at XAMLReader, XAMLWriter class.

In XAMLReader, XAMLWriter you can specify file with any extension to load/save data in XAML format.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top