开发者

Orientation problem when coding on Windows phone 7

开发者 https://www.devze.com 2023-02-02 19:44 出处:网络
I write a page and I add this.SupportedOrientations = SupportedPageOrientation.Portrait | SupportedPageOrientation.Landscape;

I write a page and I add

this.SupportedOrientations = SupportedPageOrientation.Portrait | SupportedPageOrientation.Landscape;

in the constructor.

After letting a messagebox popup and change orientation from portrait to landscape, I found that the UI under the messagebox didn’t chang开发者_如何学JAVAe orientation from portrait to landscape as expected.

Is there anything I lose in code or this is the limitation of the UI framework now?


The MessageBox is modal and blocks the UI thread so such events like orientation changed won't be processed however the underlying UI should adapt to the orientation change once the message box is dismissed.

0

精彩评论

暂无评论...
验证码 换一张
取 消