简体   繁体   English

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

[英]What's the best way to create a Windows Mobile application with multiple screens in C#

I am creating a Windows Mobile Application in C# and Visual Studio 2008. 我正在使用C#和Visual Studio 2008创建Windows Mobile应用程序。

The application will have 5-6 main 'screens'. 该应用程序将有5-6个主要“屏幕”。 There will also be bar (/area) with information (eg 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 (ie the screens will share the top bar and toolbar) 屏幕上方还会有条形(/区域)信息(例如标题,应用程序是否忙碌等),屏幕下方还有工具栏(或类似控件),有5-6个按钮(带图像)可以更改活动屏幕(即屏幕将共享顶部栏和工具栏)

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 使用单个表单和Tab控件(但自定义)之类的内容来包含屏幕
  3. Something else? 别的什么?

Keeping in mind a) memory usage and b) time to switch screens. 记住a)内存使用情况和b)切换屏幕的时间。

Thanks in advance. 提前致谢。 Any links, pointers etc are much appreciated. 任何链接,指针等都非常感谢。

Use a single Form and fill the center with UserControls. 使用单个表单并使用UserControls填充中心。 You can explicitly Dispose the UCs when appropriate. 您可以在适当的时候明确地处理UC。

Trick, use tabControl and set location to (0, -26) 欺骗,使用tabControl并将位置设置为(0,-26)

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

this, will hide the tabs 这个,会隐藏标签

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 c#-保留Windows窗体应用程序事件日志的最佳方法是什么? - c# - What's the best way to keep log for events of windows form application? 在C#Windows窗体应用程序中存储/读取多个用户设置的最佳方法是什么? - What is the best way to store/read multiple user settings in a C# Windows Form Application? 在C#中设计全屏应用程序的最佳方法是什么? - What's the best way to design a full screen application in C#? C#创建被多个类使用的枚举的最佳方法是什么? - C# What is the best way to create an enum that is used by multiple classes? 在C#中创建数据库应用程序的最佳方式 - Best way to create database application in C# Windows Mobile 6.5 C#应用程序的最佳EDB - best EDB for windows mobile 6.5 C# application 在大型 c# 应用程序上进行批量命名空间重命名的最佳方法是什么? - What's the best way to do a bulk namespace rename on a large c# application? 从 C# 应用程序加载 CSX 脚本的最佳方法是什么? - What's the best way to load a CSX script from a C# application? Windows MobilePhone的摄像头应用程序(C#) - Windows Mobile- Phone's camera application (C#) 在 C# 中从两个整数创建百分比值的最佳方法是什么? - What's the best way to create a percentage value from two integers in C#?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM