Xamarin OnPlatform

OnPlatform in Code Behind

Scratching your head how to use Xamarin’s OnPlatform directive in code-behind? Here’s how.