You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] DrawingView does not render correctly after tab navigation (TabBar) #2078
In a MAUI app, when using a TabBar structure for the UI, on application startup DrawingView is rendered correctly and all the controls work as expected. However after navigating to SecondaryPage (tab) and back to the MainPage (tab) the DrawingView is not rendered correctly anymore.
Expected Behavior
DrawingView remains rendered correctly during TabBar navigation.
Steps To Reproduce
Open and run the solution from the reproduction repository on Windows machine.
Important Note: There is a similar issue on Android, after navigation the DrawingView remains rendered but cannot be accessed. E.g. method DrawingView.ClearI() does not clear the content and other controls ignore DrawingView's position.
Important Note2: Also, I tried the same code on .NET MAUI CommunityToolkit: 6.1.0 with .NET Framework 7.0 and the issue does not reproduce: DrawingView works as expected during tab navigation (TabBar).
Additional debugging steps performed
I tried several methods like overriding the OnAppearing() method of the Content page but with no avail:
Activity
vplife1 commentedon Aug 26, 2024
@Ghibytzu Facing the same issue have you found any workaround ??
vplife1 commentedon Aug 26, 2024
#2153
mdelgadov commentedon Feb 18, 2025
I have the same problem. Also, the height changes to 0 and even if changed, it returns to 0 in the next navigation.
Add device tests for platform-specific code, run them in CI, and fix …