开发者

Save a rendered page as a XAML file

开发者_开发技巧In a WPF application, how can I save a dynamically rendered page as a new XAML file?


Use the XamlWriter to convert an object to XAML.

string xaml = XamlWriter.Save(page)

or

XamlWriter.Save(page, stream)

Where page is your dynamically rendered page object.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜