摘要:
关于Windows Phone 7的重力感应器的一些坐标的描述,可以通过下面这张图片来说明: 接下来,是如何获取WP7重力感应器的数据,这个SDK中有一个很好例子,代码如下: public partial class MainPage : PhoneApplicationPage { Accelerometer acc = new Accelerometer(); // Constructor public MainPage() { InitializeComponent(); acc.ReadingChanged += new EventHandler<AccelerometerRea 阅读全文
摘要:
摘要:这个是对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 阅读全文