MaterialDesignExtensions icon indicating copy to clipboard operation
MaterialDesignExtensions copied to clipboard

MaterialWindow delay to udpate title bar background color

Open stojy opened this issue 4 years ago • 0 comments

There seems to be a noticable delay when a MaterialWindow is rendered, whereby the chrome grey background color is shown before it is overwritten with the BorderBackgroundBrush.

On my reasonaly spec'd 11th gen CPU, it takes around 200-300ms. Which is quite jarring visually.

As expected, the delay is longer as the complexity of the window's children increases. i.e. more controls in the window results in a longer time that that the chrome heading is shown before being upated.

If it helps, the delay is also visible in the 'material design extensions - demo' app.

Is there something that can be done to reduce the delay? Perhaps applying the brush before the window is shown might eliminate the delay all together?

stojy avatar May 24 '21 14:05 stojy