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:
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
Post a Comment