Well WPF creates BAML(BinaryAML) from XAML. This is like CLI from C#. It's done in complie time. This is how all WPF controls work. I probably could rewrite this to C# but would be take some time.