title: WPF : Can BinaryFormatter serialize FlowDocument instance?
body: <p>I like to using binaryformatter to serializing flow document. but it makes exception.</p>
  
  <pre><code>[Serializable]
  public class BinFlow
  {
      public FlowDocument my { get; set; }
  }
  
  
  BinFlow myBF = new BinFlow();
  myBF.my = myFlowDocument;
  
  FileStream myFile = File.Create(@"d:\test.bin");
  BinaryFormatter myBinaryFormat = new BinaryFormatter();
  
  //exception occured here!!
  myBinaryFormat.Serialize(myFile, myBF);
  </code></pre>
  
  <p>Exception message said "FlowDocument does not decared 'Serializable' proeprty".</p>
  
  <p>ps. Of cause, I can use XamlReader and XamlWriter for serializing of FlowDocument. but I think binary can more fast performance for this work.</p>