Quantcast
Channel: VBForums - WPF, WCF, WF
Viewing all articles
Browse latest Browse all 256

System.Xaml.XamlObjectWriterException when load an image of Resource

$
0
0
I'm using the .dll WpfAnimatedGif for load a .gif image in my project. I've installed the solution and load the image into the folder of application, in particular: /Image/Caricamento/loader.gif. So, I've declared an Image control for get the .gif image:

Code:

<Image HorizontalAlignment="Right" Width="25" Height="25" gif:ImageBehavior.AnimatedSource="pack://siteoforigin:,,,/Image/Caricamento/loader.gif" />
I've selected, in the property of the image control, the source that have the .gif image directory.

gif:ImageBehavior.AnimatedSource="pack://siteoforigin:,,,/Image/Caricamento/loader.gif"
contains the source of the correct image, and I'm self of this because is displayed a preview of the image in the control. But, when I start my solution, the compilers tell me:

System.Xaml.XamlObjectWriterException
I don't know why the directory is wrong. What I doing wrong?

Viewing all articles
Browse latest Browse all 256

Trending Articles



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