使用模板 T4 生成 .xaml 和 .xaml.cs
我是 T4 模板的新手,我想从 T4 生成 .xaml 文件并从 .xml 文件中获取一些信息。所以我的问题是:是否可以从 T4 生成 .xaml 文件和所有 MVVM 基础设施,是否可以从 T4 模板文件调用并生成不同的文件? 这是选择 T4 模板生成 wpf 屏幕的最佳方式吗?如果没有,我们如何快速生成通用屏幕?
I am new in T4 Template and i want to generate .xaml files from T4 and taking some information form .xml file. So my question is: is it possible to generate .xaml files and all the MVVM infrastructure from T4 and is it possible to call and generate different files from T4 Template file ?
Is it the best way to choose T4 Template for generation of wpf screens ? If not, how can we do for generating generic screens quickly ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我看到 5 个问题:
以下是我的回答:
总之,如果您正在寻找有关如何使用 T4 的优质资源,请访问 Oleg Sych 在 T4 上的博客。 太棒了。
I see 5 questions:
Here are my answers:
In conclusion if you are looking for good resources on how to use T4 visit Oleg Sych's blog on T4. It's excellent.