Sunday, 16 May 2010

WP7 and Microsoft.Devices.VibrateController

After having a play with some of the different namespaces and classes within a WP7 project, I tried the VibrateController.

Found that the maximum duration for a vibration is 5 seconds.

To start a vibration :-

Microsoft.Devices.VibrateController.Default.Start(TimeSpan.FromSeconds(5));

To stop a vibration :-

Microsoft.Devices.VibrateController.Default.Stop();

Looking forward to being able to test this on a real device.

1 comment:

  1. Love it! Very interesting topics, I hope the incoming comments and suggestion are equally positive. Thank you for sharing this information that is actually helpful.


    ufgop.org
    ufgop.org

    ReplyDelete