FlowDocument 动态加载并显示Xaml
http://blog.csdn.net/abrahamcheng/article/details/7061801
Byte[] bytes = Encoding.UTF8.GetBytes(xamlString);
MemoryStream memoryStream = new MemoryStream(bytes);
XmlTextReader xmlTextReader = new XmlTextReader(memoryStream);
objectXaml = XamlReader.Load(xmlTextReader);
if (objectXaml is FlowDocument)
{
FlowDocument flowDocument = objectXaml as FlowDocument;
richTextBox.Document = flowDocument;
}