Category: Xamarin
-
XamarinForms – Overriding a ContentPage with a custom PageRenderer on Android
The short version: If you want to have default behavior on all platforms except for Android. Do the following Create your content page with all of it’s goodies Create a custom PageRenderer In the OnElementChanged function Cast the Context property of the renderer to the Activity type associated Take that value and execute the SetContentView method while passing…