23.01.2018 Views

MICROSOFT_PRESS_EBOOK_PROGRAMMING_WINDOWS_8_APPS_WITH_HTML_CSS_AND_JAVASCRIPT_PDF

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The Touch Language, Its Translations, and Mouse/Keyboard<br />

Equivalents<br />

On the Windows Developer Center, the rather extensive article on Touch interaction design is helpful for<br />

designers and developers alike. It discusses various ergonomic considerations, has some great diagrams<br />

on the sizes of human fingers, provides clear guidance on the proper size for touch targets given that<br />

human reality, and outlines key design principles such as providing direct feedback for touch interaction<br />

(animation) and having content follow your finger.<br />

Most importantly, the design guidance also describes the Windows 8 Touch Language, which<br />

contains the eight core gestures that are baked into the system and the controls. The table below shows<br />

and describes the gestures and indicates what events appear in the app for them.<br />

Gesture Meaning and Gesture Events Description<br />

One finger touches the screen and lifts up.<br />

Tap for primary action<br />

(commanding); appears as click and<br />

MSGestureTap events on the element.<br />

Tapping on an element invokes its<br />

primary action, typically executing a<br />

command, checking a box, setting a<br />

rating, positioning a cursor, etc.<br />

One finger touches the screen and stays in place.<br />

Press and hold to learn; appears as<br />

contextmenu and MSGestureHold<br />

events on the element.<br />

This touch interaction displays<br />

detailed information or teaching<br />

visuals (for example, a tooltip or<br />

context menu) without a<br />

commitment to an action. Anything<br />

displayed this way should not<br />

prevent users from panning if they<br />

begin sliding their finger.<br />

One or more fingers touch the screen and move in<br />

the same direction.<br />

Slide to pan (can be horizontal or<br />

vertical); appears as scrolling events<br />

as well as a gesture series<br />

(MSGestureStart, MSGestureChange,<br />

MSGestureEnd, possibly with inertial<br />

gesture events signaled by<br />

MSInertiaStart, plus MSPointer*<br />

events).<br />

Slide is used primarily for panning<br />

interactions but can also be used<br />

for moving, drawing, or writing.<br />

Slide can also be used to target<br />

small, densely packed elements by<br />

scrubbing (sliding the finger over<br />

related objects such as radio<br />

buttons).<br />

366

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!