Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Custom Control Serialization issue

$
0
0


I have a custom control which is inheriting "System.Windows.Controls.ContentControl". When i am trying to serialize my control it throws below exception.

my control:

[Serializable()]
    public class VeeObjectControl : ContentControl

{
}

I am using BinaryFormatter for serialization.

Type 'System.Windows.Controls.ContentControl' in Assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is not marked as serializable.


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>