在 C# 中创建具有多个屏幕的 Windows Mobile 应用程序的最佳方法是什么
我正在使用 C# 和 Visual Studio 2008 创建一个 Windows Mobile 应用程序。
该应用程序将有 5-6 个主“屏幕”。屏幕上方还会有带有信息(例如标题、应用程序是否繁忙等)的栏(/区域),屏幕下方会有一个工具栏(或类似的控件),其中有 5-6 个按钮(带有图像)可以更改活动屏幕(即屏幕将共享顶部栏和工具栏)
实现此目的的最佳方法是什么?
- 使用多个表单,并且只在每个表单中包含工具栏和顶栏
- 使用单个表单和诸如选项卡控件(但自定义)之类的内容来包含屏幕
- 还有其他吗?
请记住 a) 内存使用情况和 b) 切换屏幕的时间。
提前致谢。非常感谢任何链接、指针等。
I am creating a Windows Mobile Application in C# and Visual Studio 2008.
The application will have 5-6 main 'screens'. There will also be bar (/area) with information (e.g. a title, whether the app is busy, etc) above the screens, and a toolbar (or similar control) below the screens with 5-6 buttons (with images) to change the active screen (i.e. the screens will share the top bar and toolbar)
What is the best way to implement this?
- Use multiple forms, and just include the toolbar and top-bar in each
- Use a single form and something like the Tab control (but customised) to contain the screens
- Something else?
Keeping in mind a) memory usage and b) time to switch screens.
Thanks in advance. Any links, pointers etc are much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用单个表单并用用户控件填充中心。您可以在适当的时候明确处置 UC。
Use a single Form and fill the center with UserControls. You can explicitly Dispose the UCs when appropriate.
技巧,使用 tabControl 并将位置设置为 (0, -26)
这,将隐藏选项卡
Trick, use tabControl and set location to (0, -26)
this, will hide the tabs