Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Export to xaml from richtextbox having images..

$
0
0

Hi Tean,

     Below code working for save the content.

string rtbContent = XamlWriter.Save(rtb.Document);  

File.WriteAllText(@"C:\Temp\" + Guid.NewGuid() + ".xaml", rtbContent);

while opening the file in IE if file having image means it showing errors,if no image in xaml means file opens with out error.


Viewing all articles
Browse latest Browse all 18858

Trending Articles



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