tags:

views:

549

answers:

1

Is there a XAML to C# conversion tool? I have a control template defined in XAML, but I want to create this template and it's styles using C#, so I can obfuscate the code version (since I can't obfuscate the XAML/BAML).

+2  A: 

There is no tool that I am aware of that converts XAML to C# in such a way it still produces WPF (or WF depending on which XAML you talking about).

That said you want obfuscate the XAML, and there are tools that do that. One I heard of is called {smartassembly} .NET Obfuscator 3.0 - http://www.smartassembly.com/

Robert MacLean