User Interface Controls
Ported from Microsoft's XNA 4.0 User Interface Controls sample for Windows Phone.
Source for this sample on GitHub ↗
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
| Action | Control |
|---|---|
| Open level selection or high scores | Tap the main-menu entry |
| Change level page | Drag sideways |
| Scroll high scores | Drag vertically |
| Return from a submenu | Esc |