Monday, October 29, 2012

Create a new Instance of an XAML Element

Create a new Instance of an XAML Element

I have a ChildWindow which contain a Vectorlight RichTextBox and i need to create a new Instance of the same element every time i show the child.(There is one instance of childwindow which i show and hide many times)

This is the code i use :

this.childwindow.rtb = null; this.childwindow.rtb = new Liquid.RichTextBox(); 

After that the problem is the childwindow is showing a new and empty RichTextBox(maybe the new instancied) and if i make some changes on this.childwindow.rtb the canges are not rendered.

Thanks And sorry for my bad english

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog