据我所知,并不是所有的WP7都有480 x 800像素的分辨率。
在Windows Phone 7中管理不同屏幕分辨率的最佳策略是什么??
如果我在xaml中硬编码宽度、高度、边距等,当手机不支持480x800分辨率时,它会被打乱吗??
让我们分享一下你的想法。
谢谢
据我所知,并不是所有的WP7都有480 x 800像素的分辨率。
在Windows Phone 7中管理不同屏幕分辨率的最佳策略是什么??
如果我在xaml中硬编码宽度、高度、边距等,当手机不支持480x800分辨率时,它会被打乱吗??
让我们分享一下你的想法。
谢谢
一旦有了小屏幕,我也有类似的担忧。当我向微软询问此事时,我得到了这样的回答:
Minimize setting heights and widths directly. Use alignment, grids, stackpanel, etc. to layout the UI. As a test, you can create a desktop Silverlight version / mock of the project and test it in both resolutions.
上周,当我问布兰登·沃森时,他告诉我不要担心,因为他们正在研究一些巧妙的方法来处理这个问题。
我知道XNA内置了缩放支持,所以理论上这使得在XNA中处理不同的屏幕尺寸更容易,但仍然留下了触摸目标尺寸和2个屏幕尺寸的比例差异的问题。-我觉得打信箱不好看;)
使用Silverlight,问题可能会更加复杂,因为需要考虑以下因素:
屏幕尺寸比问题
Making large text smaller so it doesn t take up a disproportionate amount of screen space.
Not making smaller text smaller as it may become unreadable.
Ensuring that controls which support gestures are still large enough to recognise the gesture.
Ensuring that when neighbouring touchable controls are made smaller they still maintain sufficiently large touch targets that people can be confident about what they are touching.
Making large images smaller so they aren t larger than the available space.
Making sure that images aren t distorted when resized.
还有更多。。。
话虽如此,我们只能等着看微软拿出了什么,然后相应地调整我们的应用程序。
您不关心Silverlight中的屏幕分辨率,也不与布局中的/height或position一起使用。
首先,你们不知道什么是设备的分辨率,因为你们做的每件事都是以独立于分辨率的单位进行的。
一般规则是,在进行布局时,您可以这样做,即内容能够根据其可用空间进行布局。在这种情况下,StackPanel和Grid有很大的帮助。如果分辨率发生变化,你就不需要做任何事情(如果你的UI做得好的话)。
在XNA中处理不同的分辨率可能和在桌面游戏中一样。再说一遍,除了设置正确的转换矩阵外,没有什么可做的。
During a Mix10 presentation, the presenter (Charlie Kindel) said that when writing Silverlight based apps for WP7 you get all of Silverlight 3.0 with some of Silverlight 4.0 mixed in. Why then is ...
Obviously it s early days, I do not know whether this is information that is in the public domain or not yet, but... I have trawled through some of this site - http://www.windowsphone7series.com/ but ...
I have been reading up on "Cloud computing" on here and still not getting it. Basically I want to develop for the WP7 http://msdn.microsoft.com/en-us/library/ff402531%28v=VS.92%29.aspx#...
I know that this is jumping the gun slightly as it is early days but has anyone got any information on how we can build apps that take advantage of a basic local SQL database like you used(!) to in ...
I know.. I know, it s only a few hours old. But how the hell do you get the little page tabbing/cycle (forgot what the official name is) on the top of the page under the app title. MIX Keynotes made ...
I m wondering if anyone has any code samples or links to documentation that demonstrate how to capture audio from the device s microphone on the new Windows Phone Series 7. I ve recently downloaded ...
If I want to develop for Windows Phone 7, what should I learn? XNA, Silverlight or other?
Windows Phone 7 has been unveiled and MS have announced all details of the development chain at the Mix10 conference. So this could be a good starting point/collection of online resources as they ...