When using our application for a while, especially when changing states very often, the icons will often start rendering incorrectly - please see the attached pic.
Is the cause and solution of this known?
(We are interested in buying the Infragistics WPF Controls set for our app, but this is something that needs to be fixed first.)
Regards
Carien Fouché
We have a very strong suspicion that this has got something to do with Vista. The strange rendering (very, very) rarely crops up on machines running on XP, whereas we see it often on Vista (both 32- and 64-bit) machines.
The only project we have that exhibits the issue is our application, and unfortunately we cannot send your support group our source code. We could try to make up a smaller dummy project that replicates the problem, but this will take time and I strongly suspect that a smaller project won't do it.
Thanks for all your trouble for the time being. If we are able to get this right in a smaller project, I will do as you say and get into contact.
(I'll make a new issue of the incorrect image being displayed as soon as we get it to happen again!)
We're just using the WPF framework's Image element to handle rendering the image so I'm not sure what could be going wrong. To test I've got a test project that has a ribbon which has multiple button tools using the image you provided and am at regular intervals enabling/disabling the elements. I don't see any corruption or any memory leak that may account for the corruption. I'm wondering if this can be an issue with the video driver. Have you found this on multiple systems?
I'll leave my test running and see if it ever gets corrupted but it may be best to go through the support group and provide a project that has exhibited the issue. You can also submit the other issue you mentioned regarding the wrong image being used.
Hi. Thanks for the quick reply. The problem with this issue is that we can't seem to replicate it consistently. It just happens relatively frequently, especially when using Vista.
"The tools with the issue appear to be disabled. When the tool is disabled, the image is rendered as gray scale using a wpf format converted bitmap."
- We have noticed, indeed, that the strange rendering usually happens when the tools in the Ribbon are disabled. (However, we have also had a problem - and unfortunately, I don't have a screenshot of this - where enabled tools' images become heavily blurred after resizing the window, as if the 16x16 image gets used instead of its 32x32 counterpart. But this is a separate issue, I think.)
"Is it consistent which images appear that way?"
- All the images in the Ribbon sporadically appear that way.
"What types of images are those (i.e. png, gif, bmp, jpg)?"
- All the images are png's. We buy our icons from VectorStock and convert the vector images to 16x16 and 32x32 png's using Expression Design.
"If it is consistent which images exhibit the issue is there anything different about those images?"
- I think this has already been answered :)
"Can you try to replicate the behavior in a sample or if it only happens with specific images perhaps provide those images?"
- I've attached one of the images it happens with. (DesignAction_16.png)
I wasn't able to replicate this even having a bunch of images be disabled and re-enabled off and on over time. I'm guessing there may be an issue with the WPF framework but I'd like to know more since maybe if we can duplicate the behavior we can find a workaround. The tools with the issue appear to be disabled. When the tool is disabled, the image is rendered as gray scale using a wpf format converted bitmap. Is it consistent which images appear that way? What types of images are those (i.e. png, gif, bmp, jpg)? If it is consistent which images exhibit the issue is there anything different about those images? Can you try to replicate the behavior in a sample or if it only happens with specific images perhaps provide those images?