自适应 Windows 移动应用程序
编写可以在不同设备、屏幕分辨率、屏幕尺寸上运行的 Windows Mobile 应用程序的好方法是什么?
在我看来,我想只写一次表格并具有适应性。
但我有时听说您为不同的外形尺寸、不同的屏幕尺寸、不同的方向(纵向/横向)编写表单......我只是发现这种方法工作量太大......必须有一种更简单的方法。
What is a good approach to write a windows mobile app that can run on different device, screen resolution, screen size?
In my mind, I'd like to write the form once and be adaptive.
But I'm hearing sometimes that you write the form for different form factors, different screen size, different orientation (portrait/landscape) .... I just find this approach too much work.... there must be a simpler way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试尽可能多地使用停靠和锚定,以便获得停靠到顶部/底部/中间(填充)的面板,然后将控件锚定到左侧和右侧。
有时,您可能希望将按钮或文本居中,在这种情况下,最好用代码来实现。
一些其他提示和注意事项:http://msdn.microsoft.com/en-us/library/ms839354.aspx#screen_orientation_awareness_topic4< /a>
Try to use docking and anchoring as much as possible, so that you get panels that dock to the top / bottom / middle (fill), and then have controls that are anchored to the left and right.
Sometimes you might have a button or text that you want centered, and in those cases its best to do it in code.
Some additional tips and considerations: http://msdn.microsoft.com/en-us/library/ms839354.aspx#screen_orientation_awareness_topic4