The .NET MAUI Community Toolkit is a community-created library that contains .NET MAUI Extensions, Advanced UI/UX Controls, and Behaviors to help make your life as a .NET MAUI developer easier
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:
Is there an existing issue for this?
Did you read the "Reporting a bug" section on Contributing file?
Current Behavior
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
Link to public reproduction project repository
https://github.com/Ghibytzu/DrawingViewWithTabBarNet8/tree/master
Environment
Anything else?
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:
After navigation DrawingView has IsVisible = true but IsLoaded = false and is not rendering on screen.