Forum Xamarin.Forms

ControlTemplate loading is not immediate on iOS

AdrianKnightAdrianKnight USMember ✭✭✭✭

I have a control template defined in App.xaml that I use for a few content pages. I noticed that on iOS, when I push a new page on the navigation stack, the new page slides in on the screen and it takes a second before the control template is loaded. This is certainly visible to the human eye. The new page has a listview with 200 lightweight items. I want the listview to be available as the page is sliding. If I remove the control template, this is achieved.

Has anyone come across a similar problem before?


  • AdrianKnightAdrianKnight USMember ✭✭✭✭


    Control templates aren't loaded fast enough. Is this an XF bug? :|

  • flchauxflchaux FRMember ✭✭


    I have the same issue. My ContentPresenter is loaded asynchronously and this is visible by the user. It takes about 1 second too.
    Did you found a solution ?


  • AdrianKnightAdrianKnight USMember ✭✭✭✭

    @flchaux For me, the solution was to set the control template in code-behind. It's a workaround. Unfortunately, this creates another bug:

    So, you also need to explicitly set the binding context of your content.

Sign In or Register to comment.