Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

OnModelChanged event not found for android page renderer

$
0
0

Hi,
I am building an app with a custom page renderer for android but the method needed cant be found to override:

[assembly: ExportRenderer(typeof(GoogleLoginPage), typeof(GoogleLogin_Android))]

namespace iBridge_RandstadMetaApp.Android
{
    public class GoogleLogin_Android : PageRenderer
    {
        protected override void OnModelChanged(VisualElement oldModel, VisualElement newModel)
        {
            //base.OnModelChanged(oldModel, newModel);

            var activity = this.Context as Activity;

        }
    }
}

Viewing all articles
Browse latest Browse all 58056

Trending Articles