Alex McBride
Alex McBride

Reputation: 7011

Convert C# Path object to XAML in WPF

I have a WPF Path object which is created by reading nodes from a binary file, however I was wondering if there was a way to take this generated Path and convert it into XAML that could be stored in the application resources.

Thanks

Upvotes: 1

Views: 923

Answers (1)

kmontgom
kmontgom

Reputation: 1429

Can you use XamlWriter (System.Windows.Markup)? It should be capable of taking any WPF object and producing a string containing the equivalent XAML.

Upvotes: 3

Related Questions