Screenshot from WPF application as SVG / vector gr

2019-04-12 12:26发布

问题:

is it possible to create a screenshot of a WPF application as SVG / is there some WPF built-in function to get the XAML code for the current drawn window that then can be converted to SVG? I need some screenshots for documenting a WPF application and I'd like them to be zoomable like a WPF program is using e.g. Snoop or Vista Magnifyer. Thanks for any hint!

回答1:

You would need to use XamlWriter to serialize the XAML, and then write or find an implementation of something to convert that to the vector format of choice.