cant use XamlWriter in Silverlight 5 application
===

i work on a silverlight 5 application and i cant use XamlWriter,
i want to serialize UI Runtime objects and when run app occur with this error "Type 'System.Windows.UIElement' cannot be serialized."

have any solution?