开发者

Save a rendered page as a XAML file

开发者 https://www.devze.com 2022-12-20 01:30 出处:网络
开发者_开发技巧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.

开发者_开发技巧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

精彩评论

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