This question is locked. New answers and comments are not allowed.
Using a RadSlideView with an ItemTemplate that contains a PanAndZoomImage, what would you recommend as the best way to handle the ImageFailedEvent and display a different image when this event fires?
I've tried a couple different things:
I've tried having a Image and PanAndZoomImage element in the template and binding the Visibility to IsFailedImage for both, one having an Inverse property passed to the converter, so if the ImageFailedEvent fires I set IsFailedImage and the Image element is visible, if IsFailedImage is false the PandAndZoomImage will be visible. In theory this should work but when IsFailedImage is true, the screen is blank.
I've also tried changing the PandAndZoomImage Source after ImageFailed fires but again, the ImageFailed image won't display.
I've thought about using a TemplateSelector but I'm not sure that would work as ImageFailed would be firing in one of the template selections.
Am I missing something? It would be nice to have something built in for this, similar to the DataboundListbox display a message when there isn't any data to display.
Thanks.
I've tried a couple different things:
I've tried having a Image and PanAndZoomImage element in the template and binding the Visibility to IsFailedImage for both, one having an Inverse property passed to the converter, so if the ImageFailedEvent fires I set IsFailedImage and the Image element is visible, if IsFailedImage is false the PandAndZoomImage will be visible. In theory this should work but when IsFailedImage is true, the screen is blank.
I've also tried changing the PandAndZoomImage Source after ImageFailed fires but again, the ImageFailed image won't display.
I've thought about using a TemplateSelector but I'm not sure that would work as ImageFailed would be firing in one of the template selections.
Am I missing something? It would be nice to have something built in for this, similar to the DataboundListbox display a message when there isn't any data to display.
Thanks.