문제

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