I have an application that creates a number of Buttons on a canvas, and then sets them all to invisible.
Unfortunately it seems that as soon as the appliaction has loaded these buttons, my cpu maxes out for a good few minutes.
I know it is related to these buttons because if I comment out the procedure that loads these buttons, the cpu doesn't budge.
I have concluded ( by using process explorer and the visual studio call stack) that the problem is something to do with presentationcore.dll.
Attached is a screenshot of my call stack, as you can see, it seems to be something also to do with setting the visibility of the buttons, however if I skip this step it makes no difference.
Has anybody experienced this or got any suggestions?
Unfortunately it seems that as soon as the appliaction has loaded these buttons, my cpu maxes out for a good few minutes.
I know it is related to these buttons because if I comment out the procedure that loads these buttons, the cpu doesn't budge.
I have concluded ( by using process explorer and the visual studio call stack) that the problem is something to do with presentationcore.dll.
Attached is a screenshot of my call stack, as you can see, it seems to be something also to do with setting the visibility of the buttons, however if I skip this step it makes no difference.
Has anybody experienced this or got any suggestions?