Export (0) Print
Expand All

Cloth



The Cloth sample application is a Microsoft XNA-based application that demonstrates how to use the Core Interaction Framework.

Cloth sample application

API Concepts Exposed

This sample shows how to use the following Core Interaction Framework state machines:

  • ScrollViewerStateMachine

  • ListBoxStateMachine

  • ScrollBarStateMachine

  • ButtonStateMachine

It also demonstrates the following animations:

  • Scroll bar thumb

  • List box

  • Scroll bar slide and fade

  • Item and button glow and grow

The key classes from the Core Interaction Framework are UIController and UIElementStateMachine. The key classes from the XNA Framework are Game, GameComponentCollection, and DrawableGameComponent. The key class of the Cloth sample is the UIElement class, which derives from DrawableGameComponent and encapsulates a UIElementStateMachine object.

Did you find this information useful? Please send us your suggestions and comments.

© Microsoft Corporation. All rights reserved.
Show:
© 2014 Microsoft