自适应 Windows 移动应用程序

发布于 2024-09-02 00:07:30 字数 175 浏览 0 评论 0原文

编写可以在不同设备、屏幕分辨率、屏幕尺寸上运行的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

简单爱 2024-09-09 00:07:30

尝试尽可能多地使用停靠和锚定,以便获得停靠到顶部/底部/中间(填充)的面板,然后将控件锚定到左侧和右侧。

有时,您可能希望将按钮或文本居中,在这种情况下,最好用代码来实现。

一些其他提示和注意事项: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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文