如何在WPF中克隆控件? [英] How to Clone Control in WPF?
本文介绍了如何在WPF中克隆控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想克隆一个WPF控件( XamDataGrid
)
I want to clone a WPF Control (XamDataGrid
)
我知道这些方法:
-
克隆
问题:控件不可克隆
Clone
Problem: Control is not Cloneable
序列化和以二进制格式反序列化
问题:控件不可序列化
Serialize & Deserialize in binary format
Problem: Control is not serializable
序列化为XML
问题:控件包含图像并且图像无法在xml序列化中序列化
Serialize as XML
Problem: control contains images and Images are not serializable in xml serialization
您有任何有效的解决方法吗?
Do you have any valid workarounds ?
推荐答案
这是一种解决方法
http://heskandari.blogspot.com/2009/07/infragistics-wpf-reporting.html
这篇关于如何在WPF中克隆控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文