CNA Samples

User Interface Controls

Ported from Microsoft's XNA 4.0 User Interface Controls sample for Windows Phone.

Source for this sample on GitHub ↗

The running level-selection screen showing the illustrated House page and its description. Play ▸

Use touch or the left mouse button to tap and drag. Press Esc to return from a submenu; Esc on the main menu exits the game.

About this sample

This sample adds image, text, scrolling and page-flipping controls to an XNA screen manager. The level-selection screen demonstrates sideways paging; the high-score screen demonstrates vertical scrolling.

Controls

ActionControl
Open level selection or high scoresTap the main-menu entry
Change level pageDrag sideways
Scroll high scoresDrag vertically
Return from a submenuEsc