How to get screen size in Panorama control of Windows Phone 7 -


how programatically actual screen size (width , height) in windows phone? use following: how screen size on windows phone 7 series

but panorama control bit tricky, since above code gives panoramaitem width , height (not panorama width , height).

i have following code creates popup:

 modalpopup = new popup();  modalpopup.child = new modalwait() { maxwidth = application.current.host.content.actualwidth };  modalpopup.isopen = true; 

as result popup created width of panoramaitem, not total width of phone screen. there's right margin not covered popup. see screenshot below:

wp screensize problem

any ideas how overcome right margin , actual phone screen size?

the maxwidth property not set element's width. gets/sets maximum width constraint of element. want use width property instead.

the code showed application.current.host.content.actualwidth give correct screen width, not panorama item's width.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -