开发者

UI Design on Windows Mobile/CE

开发者 https://www.devze.com 2023-02-20 11:31 出处:网络
I have recently started on a project developing a window mobile/ce buisiness application.I have a ui design that uses a wizard to capture input data.To get the wizard started we open a windows form an

I have recently started on a project developing a window mobile/ce buisiness application. I have a ui design that uses a wizard to capture input data. To get the wizard started we open a windows form and maximize it. The form has one panel on it that is set to the size of the form. We pass a reference to the panel into the wizard controller as a container for the wizard user controls (each wizard step is a user control and the user control's size is set to that of the panel and thus the windows form. When viewed in a windows mobile emulator this works great the user control takes up the entire screen and the controls on the wizard step control are all visible on the screen with no vertical or horizontal scroll bars visible. When we load this onto one of the potential handheld devices the windows 开发者_运维百科form doesn't fit exactly onto the screen as I would expect. There are both horizontal and vertical scroll bars and the controls aren't all visible. Does anyone have any hints and tips on getting around this problem? Is it possible to maximize a windows form in such a way that it exactly fills the screen on any mobile or ce device?


You need to check the screen resolution of your emulator and of your handheld device. I suspect you are working on different screen resolutions. If it's the case, then set the screen res for your emulator to match the screen res of your device. If for some reason this is not possible, just create your form to match the screen res of the device and try to fit all your UI in that limited space.

If you need to support many screen resolutions, you have 2 approaches: 1. Develop for the lowest res. This might look a bit ugly for higher res devices 2. Use anchors and control docking when defining your form layout.

0

精彩评论

暂无评论...
验证码 换一张
取 消