Month: September 2018

Handle back button on hardware navigation bar Android – xamarin forms

This post is for mobile development using Xamarin Forms. Sometimes, instead of using default effect of back press button, you want to fire an event when user clicks into that back button so that you can handle it. Unfortunately, we do not have the method onBackPressed() method in Xamarin Forms. However, you can achieve this …


c# – run a code after a time delay

Sometimes, you will need to execute a piece of code after a time delay. To achieve this behaviour, we can have following 2 solutions: Solution 1: – We can use dependency service to implement a native function of delay for each platform (like delay Runnable for Android) Solution 2: – If you want a cross …