I use this to clear the canvas.
mainCanvas().Children().Clear();
The UI will surely change after the event, but I would like to take a screenshot just after the canvas being cleared. I've tried various methods but always get a screenshot of uncleared canvas. At last, I separated the actions into different events to achieve it, but I still wonder how to do this in a single event.
This is very much the same situation as for WPF. Clearing canvas has a delay