在 C# 中创建具有多个屏幕的 Windows Mobile 应用程序的最佳方法是什么

发布于 2024-08-24 21:36:46 字数 372 浏览 3 评论 0原文

我正在使用 C# 和 Visual Studio 2008 创建一个 Windows Mobile 应用程序。

该应用程序将有 5-6 个主“屏幕”。屏幕上方还会有带有信息(例如标题、应用程序是否繁忙等)的栏(/区域),屏幕下方会有一个工具栏(或类似的控件),其中有 5-6 个按钮(带有图像)可以更改活动屏幕(即屏幕将共享顶部栏和工具栏)

实现此目的的最佳方法是什么?

  1. 使用多个表单,并且只在每个表单中包含工具栏和顶栏
  2. 使用单个表单和诸如选项卡控件(但自定义)之类的内容来包含屏幕
  3. 还有其他吗?

请记住 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?

  1. Use multiple forms, and just include the toolbar and top-bar in each
  2. Use a single form and something like the Tab control (but customised) to contain the screens
  3. 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 技术交流群。

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

发布评论

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

评论(2

羞稚 2024-08-31 21:36:46

使用单个表单并用用户控件填充中心。您可以在适当的时候明确处置 UC。

Use a single Form and fill the center with UserControls. You can explicitly Dispose the UCs when appropriate.

相守太难 2024-08-31 21:36:46

技巧,使用 tabControl 并将位置设置为 (0, -26)

int Offset = 26;
tabControl1.Size = new Size(800, 480 + Offset);
tabControl1.Location = new Point(0, - Offset);

这,将隐藏选项卡

Trick, use tabControl and set location to (0, -26)

int Offset = 26;
tabControl1.Size = new Size(800, 480 + Offset);
tabControl1.Location = new Point(0, - Offset);

this, will hide the tabs

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