摘要: 关于Windows Phone 7的重力感应器的一些坐标的描述,可以通过下面这张图片来说明: 接下来,是如何获取WP7重力感应器的数据,这个SDK中有一个很好例子,代码如下: public partial class MainPage : PhoneApplicationPage { Accelerometer acc = new Accelerometer(); // Constructor public MainPage() { InitializeComponent(); acc.ReadingChanged += new EventHandler<AccelerometerRea 阅读全文
posted @ 2010-11-11 20:04 十二号的国王 阅读(311) 评论(0) 推荐(0) 编辑
摘要: 摘要:这个是对Windwos Phone 7目前能拿得到的设备信息的封装。 /// <summary> /// Get Device Information for Windows Phone /// </summary> public class DeviceInfo { private static readonly int ANIDLength = 32; private static readonly int ANIDOffset = 2; #region - DeviceManufacturer - //NOTE:The name of the manufac 阅读全文
posted @ 2010-11-11 19:55 十二号的国王 阅读(390) 评论(0) 推荐(0) 编辑