简体   繁体   English

WPF重构:将DataTemplate移动到另一个文件

[英]WPF Refactoring: Moving DataTemplate to another file

I've got some dozen of report which can be viewed by the same WPF form. 我有几十份报告可以通过相同的WPF表格查看。

This is achieved by using many DataTemplate but this leads to a file long 2500 rows. 这可以通过使用许多DataTemplate来实现,但这会导致文件长2500行。

Is it possible to move the definition of the DataTemplate to another file? 是否可以将DataTemplate的定义移动到另一个文件?

Which kind of solution could help in this objective? 哪种解决方案可以帮助实现这一目标?

资源字典非常适​​合在WPF中使用资源字典分离XAML

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM