问题
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.
回答1:
Use a single Form and fill the center with UserControls. You can explicitly Dispose the UCs when appropriate.
回答2:
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
来源:https://stackoverflow.com/questions/2412843/whats-the-best-way-to-create-a-windows-mobile-application-with-multiple-screens