White flash when changing windows

A touch screen app has multiple windows that completely fill the screen.

User taps a button and another window appears. The problem is that the screen goes completely white for a second to two (it’s very noticeable).

Is this normal behavior? What’s the correct way to do this?

Have you run code profiling to see if the Opening event is perhaps taking too long?

The other known cause that comes to mind is having a large number of controls on the Window, but that tends to come with other telltale signs (you end up seeing each control pop into view one at a time).

There are 12 pictures, a background canvas and 8 buttons.

Is there a way of having the window get set up while invisible or off the screen and then make it visible?

I wouldn’t expect that to be too many, perhaps not the issue.

Try turning ImplicitInstance=false and Visible=false. You may be able to get an overloaded Opening event to fire before the Window is visible. This is an untested suggestion (I dont actually keep everything in the noggin, I usually test before posting if I can).

I would suggest turning on Code Profiling to see if the debugging tools we have can take the guesswork out of finding what’s being slow.

2 Likes