views:

232

answers:

0

Hi,

I need to serialize a specified element of my xaml markup in silverlight. I've used the silverlightcontrib library and the xamlwriter class that has, however when trying to load a textbox control back an error is thrown stating that a textbox cannot contain content. Upon inspecting the xaml file that is produced, the textbox element has a grid element nested within it. This is for the border of the actual control and is probably hidden by the editor.

I need to get a workaround for this or a way of serializing xaml. Has anyone done either of these?