How to Clone Control in WPF?

故事扮演 提交于 2019-12-10 11:36:10

问题


I want to clone a WPF Control (XamDataGrid)

I know these ways:

  1. Clone
    Problem: Control is not Cloneable

  2. Serialize & Deserialize in binary format
    Problem: Control is not serializable

  3. Serialize as XML
    Problem: control contains images and Images are not serializable in xml serialization

Do you have any valid workarounds ?


回答1:


Here is a workaround

http://heskandari.blogspot.com/2009/07/infragistics-wpf-reporting.html



来源:https://stackoverflow.com/questions/2572066/how-to-clone-control-in-wpf

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!