CNA Samples

Dynamic Menu

Ported from Microsoft's XNA 4.0 Dynamic Menu sample for Windows Phone.

Source for this sample on GitHub ↗

Page 3 showing the XML-loaded controls, checkerboard and progress bar at 40 percent. Play ▸

Opens in a new tab. Tap the original phone controls, or click them with a mouse on desktop.

About this sample

This sample demonstrates a reusable dynamic UI library. Page 1 builds controls in code; Pages 2 and 3 load their control trees from XNA content compiled from XML. The pages show buttons, labels, an image, multiline text, transitions and a progress bar.

Controls

ActionControl
Change pageTap or click Page 1, Page 2 or Page 3 at the top
Change hue, index or animationTap or click the controls on Page 1
Advance the progress barTap or click Advance on Page 3
ExitGamepad Back