UI won't load fully until click

gogolongogolon Member ✭✭

I've recently launched my Xamarin app on iOS for the first time. The app works perfectly on Android. However, on iOS the UI won't load fully until I touch the screen. This is related to binding and ui elements which are being created dynamically. For example, this button:

<local:MainMenuButton Command="{Binding NavigateCommand}" CommandParameter="{Type local:page2}" CornerRadiusExtended="{Binding LeftCornersRounded}" Grid.Row="0" Grid.Column="0" HeightRequest="{Binding Width, Source={x:Reference ModelButton}}"/>

won't change it's height to ModelButton's height. Everything starts working after I click the screen. Does someone know what's going on?

Tagged:

Best Answer

  • gogolongogolon ✭✭
    Accepted Answer

    I've received a reply from Microsoft Support. They found the root of the issue. It was a NuGet package called Forms9Patch which caused the problem (https://baskren.github.io/Forms9Patch/). It's unclear how it could affect the rendering, but removing the package from the project resolved the issue. I'll contact the package owner with this.

Answers

  • ColeXColeX Member, Xamarin Team Xamurai

    I test on my side with the same code ,it works fine.

    Would you mind share us a basic sample project ?

  • gogolongogolon Member ✭✭

    I tried to reproduce the issue in a new project, and I am not able to do that... I'll try to migrate all my files to a new project and check if the problem persists.

  • gogolongogolon Member ✭✭
    edited July 4

    Okay, copying the files to a new project didn't work. I discovered a very strange thing though. I managed to get rid of this bug for one of the pages by setting it as a root page (this didn't work for the second page). As I said, I am not able to reproduce the issue on a new project. I think this might be a Xamarin.iOS bug. I decided to send a support ticket using MS Support page.

  • ColeXColeX Member, Xamarin Team Xamurai

    Okay, if possible you could update result here .

  • gogolongogolon Member ✭✭
    Accepted Answer

    I've received a reply from Microsoft Support. They found the root of the issue. It was a NuGet package called Forms9Patch which caused the problem (https://baskren.github.io/Forms9Patch/). It's unclear how it could affect the rendering, but removing the package from the project resolved the issue. I'll contact the package owner with this.

  • mshwfmshwf EGMember ✭✭✭

    @gogolon said:
    I've received a reply from Microsoft Support. They found the root of the issue. It was a NuGet package called Forms9Patch which caused the problem (https://baskren.github.io/Forms9Patch/). It's unclear how it could affect the rendering, but removing the package from the project resolved the issue. I'll contact the package owner with this.

    How do you communicate with Microsoft for these technical issues, and how they investigate your code?

  • gogolongogolon Member ✭✭
    > @mshwf said:
    > How do you communicate with Microsoft for these technical issues, and how they investigate your code?

    I communicated with them using their business support page. You are allowed to send them your files there, so I attached my whole project. They replied within a day, so their support is really fast.
  • mshwfmshwf EGMember ✭✭✭

    @gogolon Wow, this is great from Microsoft,
    could you please share this business support page?

  • gogolongogolon Member ✭✭

    @mshwf: Yes, I was surprised by how much they value their customers, especially having in mind that Xamarin is free.
    Here's the page:
    https://support.microsoft.com/en-us/hub/4343728/support-for-business

Sign In or Register to comment.