Fix window resizing in Windows Store apps.