Code Examples

Code Examples and snippets you can reuse from my previous projects

How to Enable shake detection in Xamarin Forms

This needs to be added to every page (in the .cs code behind) for every page you want to enable shake detection in Xamarin Forms, if you are using a MasterDetaail navigation hierarchy then you can get away with adding this the MainPage.xaml.cs to cover all the navigated to pages too.

Amend to suit but the example below would navigate to a fictional ‘Support’ Page when the device is shaken, requires the Xamarin Essentials package;

 

Andy Flisher, the founder of Xyroh, is a mobile app developer, specialising in cross platform mobile apps, iphone apps, android apps, as well as web applications and desktop software for business clients across the North East – feel free to contact him to engage his services