Hamburger menu freezing on one view only in Release build

Fred Kozlowski 0 Reputation points
2024-06-18T19:09:03.39+00:00

I have a view in my AppShell that works totally fine in the Debug build. When I navigate to that view in the Release build using the hamburger menu, the application freezes on the screen that I was on prior to navigation. I can still use the hamburger menu, but I can't change the view.

I have no errors in either Release or Debug. It appears that the screen I'm navigating to is never loading. OnAppearing and OnNavigatedTo aren't running.

All the other views are working as intended.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,116 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 38,141 Reputation points Microsoft Vendor
    2024-06-27T06:22:01.2+00:00

    Hello,

    Thanks for your feedback.

    After testing, this issue is caused by referencing static resources.

    <BoxView HeightRequest="1" Color="{StaticResource CustomGrayDE}" Margin="0,0,0,30" />
    

    This issue does not occur if the color or the value of the color, e.g. "Red", is used directly instead of the StaticResource.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments