What happens in the OnAppearing of Xamarin Forms?

3028 views xamarin

I have a Forms application which works good but I notice the background colors appear set incorrectly for a fraction of a second as the page appears.

I have this code for my OnAppearing

    protected override async void OnAppearing()
        vm.Theme = Settings.th.ToString();
        await SetCardButtons(Settings.cc.Text());

Can someone explain what happens in the base.OnAppearing() and should this be the first or last line in my override?

answered question

1 Answer


base.OnAppearing() doing nothing

Look at source code of Page.cs

posted this

Have an answer?


Please login first before posting an answer.