http://social.msdn.microsoft.com/Forums/zh-SG/wpfzhchs/thread/e5c87129-966a-4d51-a934-ccb8fc7620ec

 

比如 canvas里面有一个RichTextBox1 ,我现在要New一个新RichTextBox2 ,将RichTextBox1 的内容事件复制到RichTextBox2,俩个可以共存在canvas;有没有简单点类似Winform的克隆呢!

 

string xaml =System.Windows.Markup.XamlWriter.Save(rtb1);
           
RichTextBox rtb2 =System.Windows.Markup.XamlReader.Parse(xaml)asRichTextBox;

相关文章:

  • 2021-11-17
  • 2021-11-27
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-10
猜你喜欢
  • 2022-12-23
  • 2021-05-14
  • 2022-12-23
  • 2021-04-02
  • 2021-12-17
  • 2022-12-23
  • 2022-01-26
相关资源
相似解决方案