开发者_开发技巧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.
精彩评论