Now some items don’t load, and since this is random I suppose that it’s a timeout for fireing so many requests.
I thought that not loading would fire the Error event, but it doesn’t. Is there any way I can check if the image has loaded successfuly?
There’s no reason the the Error handler wouldn’t be called if an error occurs. We don’t use that much directly in UX though, instead we tend to use the WhileFailed trigger. Try that and see if you can at least detect that they’ve failed that way.
It’s possible the request is somehow hanging instead of failing. I’m not sure what the timeout policy is at the moment. I’ll file an issue to investigate this.
I’m also a developer in this project, if you have GitHub users I can add you to the private repo so you can check the source.
How do we catch the error with the WhileFailed?
I tried adding
That error is typically emitted when you attempt to access a ux:Name object outside of the current ux:Class being defined.
Unfortunately with WhileFailed there is no way to get at the error message. It goes on the Image, not the ImageSource. As long as Error isn’t working correctly there is no way to get at the error message.