Silverlight Forums

Your Silverlight Community

Introduction to the Windows Phone 7 Accelerometer

Posted under News on Nov 30, 1999 (2 months ago)

In this post, Jeff Fansler discusses the accelerometer in Windows Phone 7.

Windows Phone 7 (WP7) will have an accelerometer in it. The framework namespace that covers the accelerometer is Microsoft.Devices.Sensors. The class we care about here is the Accelerometer class. This class has 2 important methods Start and Stop. As you can likely guess, start tells the system you want to start reading values from the accelerometer and stop means you are done. The Accelerometer also has an important event called ReadingChanged. This event fires once you have started the accelerometer and one of the accelerometer values has changed. The event uses the AccelerometerReadingEventArgs class to return back the values that have changed. There are 3 important values, X, Y, and Z. Each represents the force of acceleration on that axis.


Source: http://www.silverlightshow.net/news/Introduction-to-the-Windows-Phone-7-Accelerometer.aspx

Back to News

Bookmark and Share

Latest Tutorials


Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.silverlighttutorials.com/?feed=rss2:1: parser error : Space required after the Public Identifier in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.silverlighttutorials.com/?feed=rss2:1: parser error : SystemLiteral " or ' expected in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.silverlighttutorials.com/?feed=rss2:1: parser error : SYSTEM or PUBLIC, the URI is missing in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.silverlighttutorials.com/?feed=rss2:9: parser error : Opening and ending tag mismatch: hr line 7 and body in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: </body></html> in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.silverlighttutorials.com/?feed=rss2:9: parser error : Opening and ending tag mismatch: body line 4 and html in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: </body></html> in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: http://www.silverlighttutorials.com/?feed=rss2:10: parser error : Premature end of data in tag html line 2 in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: in /home/mullerco/public_html/news/article.php on line 198

Warning: simplexml_load_file() [function.simplexml-load-file]: ^ in /home/mullerco/public_html/news/article.php on line 198

Warning: Invalid argument supplied for foreach() in /home/mullerco/public_html/news/article.php on line 207

Forum Posts

Help with building a side scrolling chart similar to a gantt

Read More →

Video Player Silverlight

Read More →

Problem With MouseDragElementbehavior to move windows on mouse move Event.

Read More →

Remote Silverlight Opportunity

Read More →

Windowless Mode and greek text input

Read More →

Popup Issue In Silverlight 3.0

Read More →

Realtime charts with Microsoft Windows control charts

Read More →

Using themes - Missing microsoft.windows.controls.theming.dll in Silverlight 3 tookit

Read More →

Databinding an Item in a collection to a controls in Silverlight xaml

Read More →

(Silverlight 4) Exceptions from a WCF service thrown by UserNamePasswordValidator

Read More →

About Silverlight Forums

Silverlight Forums is an established Silverlight community for people interested in design and development using Microsoft Silverlight technology.

Flickr

Silverlight Hat fs_timhuer