What happens in the OnAppearing of Xamarin Forms?

3028 views xamarin
-1

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()
    {
        base.OnAppearing();
        Subscribe();
        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

2

base.OnAppearing() doing nothing

Look at source code of Page.cs

posted this

Have an answer?

JD

Please login first before posting an answer.