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.