var motionManager = new CoreMotion.CMMotionManager();


           if (motionManager.DeviceMotionAvailable)
           {

//支持

}