Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to serialize a wpf element tree to Xaml?

Tags:

c#

.net

wpf

xaml

What is the best way to serialize a wpf element tree to xaml so that I can get a design time representation?

XamlWriter.Save is having serious limitations, and it can provide only the run-time representation

Probably Microsoft don't want any one to build a customized xaml designer with out much effort :(

like image 775
amazedsaint Avatar asked Nov 26 '22 22:11

amazedsaint


1 Answers

As I understand, there is no direct way to get the design time representation of xaml from the visual tree. :)

like image 174
amazedsaint Avatar answered Dec 18 '22 18:12

amazedsaint