Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Is it possible to delay re-painting of the display until a series of changes to a page are all done?

$
0
0

Back in the days, before .Net, when developing Windows SDK applications, it was possible to stop a listbox from updating on screen whilst multiple changes were made to its content, then re-enable drawing of the listbox to show the final result. This was faster, but also reduced annoying scrolling etc on screen.

Is there a way of disabling and re-enabling painting in Xamarin.Forms?

I have some code where I replace one image by another (more accurately, I change the Source property of an Image to reference a different source) , but currently when that happens on Windows, there is flicker as if the old image were removed and the new image then added (the views to the right of the image move left, then move right again). Without switching to using absolute layouts, is there any way to prevent this flicker? For this particular case, it is when changing the Source property of an Image to use another image of the same size. Although a specific solution for this would be good, a generic solution would be great :-)

Many thanks,

John H.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>