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?
Answers
Bump.
Control templates aren't loaded fast enough. Is this an XF bug?
Hello,
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 ?
Flo.
@flchaux For me, the solution was to set the control template in code-behind. It's a workaround. Unfortunately, this creates another bug: https://bugzilla.xamarin.com/show_bug.cgi?id=43706
So, you also need to explicitly set the binding context of your content.