wpf - Serialize an image in XAML using XamlWriter -


I am using XamlWriter to serial a group of WPF objects. One of these objects is an image control whose source is set to the file on disk.

When XamlWriter serializes objects, then it sets the source image in a URI, which points to the file on the file system. Is there a way to include that data in Xaml, so instead of referencing the file, the information is stored in xaml?

Thanks

from MSDN:

"Images are also sorted as an object reference to the image because they are present in the project, instead of the original source references, whatever the file name or URI was originally referenced was lost."

< / Div>

Comments

Popular posts from this blog

c# - PInvoke of NetUserAdd returns 24 -

c# - XMLDocument.Validate Error: System.InvalidOperationException : The XmlSchemaSet on the document is either null or has no schemas in it -