As far as I know, everything done in XAML can be done in C#.
Why XAML is compiled in BAML and not in C# ? Wouldn't be more efficient to parse the XAML at compile-time and create the corresponding C# code ?
Copyright Notice:Content Author:「japf」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/1423728/why-xaml-is-compiled-into-baml-and-not-in-c-sharp