I love XAML and everything, but how can I make Visual Studio generate C# code instead?
This is for learning purposes, just to see how the compiler translates from XAML to C#.
Thank you!
I have written this tool which generates equivalent c# code for the xaml provided.
编译器将为您的XAML创建部分类,以便您在后面的代码中访问您的标识符(查看/obj/Debug/*.g.cs等),但大部分都转换为二进制资源表示形式(BAML) )然后在运行时加载,而不是转换为MSIL。
Such a feature does not exist, and although you could write a plugin to achieve this behavior, such a plugin does not (yet) exist either. MSDN does a pretty good job of showing both XAML and C# representations of features.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.