You are here:   Blogs > Zune HD Development Blog
  |  Login
 Blog List    
   
  
 Archive    
   
  
 View Blog    
Oct 29

Written by: host
10/29/2009 8:27 AM 

 

Getting Started

When creating a Windows application, you start with a Form.  You can then add multiple controls to the form.  I used this same concept and created a Form class which inherits from the Game class.  The form is just the container that really parents the controls within itself.  It handles calls that load content, draws and updates which then filter to the child controls.

After creating the form, it's time to create our controls.  Following will be screen shots with a short explanation of each item.

 

TextBox Control

ZuneForms-TextBox 

The TextBox control allows a user to input text.  It handles 3 Text Modes:  SingleLine, MultiLine and Password.  One thing I discovered, is that Microsoft's XNA Zune Extensions, does not expose the keyboard to us, so I had to create my own keyboard.

 

Keyboard Control

ZuneForms-Keyboard 1 ZuneForms-Keyboard 2

The Keyboard control simply allows characters to be added to the TextBox control.  There are two basic modes:  Letters and Other, as seen in the screen shots above.

 

Label Control

ZuneForms-Label

The Label Control is simply a way to put static text on a form or control.  There are several properties that can assigned that will determine how the label is displayed.

 

ListBox Control

ZuneForms-ListBox

The ListBox control allows for multiple options to be put into a format where the user can scroll up or down to view the items and then make a selection.  The ListBox control contains a collection of ListItems.  The ListBox only draws the ListItems that are visible on screen at any given time.

 

Context Menu

ZuneForms-ContextMenu

The ContextMenu displays when a user touches and holds for a short time.  The menu will then display and allow for a MenuItem to be selected.  In this case, the ContextMenu is a way the user can switch between TabPages of the TabControl.

 

TabControl and TabPages

The TabControl has been displayed in all the screenshots thus far.  There are three ways to navigate between TabPages.

  1. Click the arrows in the TabControl's header.
  2. Use the ContextMenu as shown in the previous screenshot.
  3. Swipe left -> right / right -> left.

 Each TabPage can have it's own backcolor and control collection.

 

Checkbox Control

ZuneForms-Checkbox

The Checkbox control is pretty simple, touch the control and it changes its checked state.

 

Button Control

ZuneForms-Button ZuneForms-Button Pressed

These screenshots show the Button control and that an image can be applied as the button allowing for both normal and pressed states or the default Button control with a border and backcolor.  It changes backcolor when in its pressed state.

 

There is a lot more to do!

Although I feel really good about the progress, there is still a lot to do in order to have a stable product.  From the screen shots above, no doubt you have noticed some of those issues.  My next two tasks are as follows:

  1. When clicking the change the text of a TextBox that is set to MulitLine, I need to adjust the display of the Keyboard TextBox.  I also need to added a scrolling capability to the TextBox MultiLine.
  2. Currently, the ListBox control stops scrolling as soon as the user stops touching the screen.  I need to account for a continuing scroll for long up/down swipes.

I hope this at least gives you an idea of the project.  If you'd like to download the current Zune.Forms.dll or the source code, visit our CodePlex page:

ZuneForms.codeplex.com

Tags:

3 comment(s) so far...

Re: Zune HD Forms - A View of the Controls

I completely agree with the above comment, the internet is with a doubt growing into the most important medium of communication across the globe and its due to sites like this that ideas are spreading so quickly.

By règles du Vidéo Kéno on   3/16/2010 4:41 AM

Re: Zune HD Forms - A View of the Controls

I completely agree with the above comment, the internet is with a doubt growing into the most important medium of communication across the globe and its due to sites like this that ideas are spreading so quickly...règles du Vidéo Kéno

By règles du Vidéo Kéno on   3/16/2010 4:42 AM

Re: Zune HD Forms - A View of the Controls

Thanks for so much great information in this post. I agree that I would help some events to close the gap between actually being there and reading someone’s tweets from the event. Good luck!

By Music Search on   5/13/2010 8:49 AM

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel