I’ve used the “LoadCompleted” event and basically once the event is received, I need to take a screenshot of the screen (which I’ve built). The problem is once this event goes out, the screenshot is just blank (page hasn’t loaded yet) and only if I put a delay of 5-10 seconds, the screenshot will work
Now how can I determine when the webpage is fully rendered? That all the aspects are loaded and so on
Your problem is that the LoadCompleted event is called immediately after the page has been loaded, but before it has been rendered. I don’t know of any way to tell exactly when it’s finished rendering, but you can use the Dispatcher to ensure your code is run after any rendering has occurred.
You might have to experiment with the priority level a bit, but Background seems to be doing the trick for me.