TabbedPage inside Grid works in debug mode, but throws exception in release mode (Copy of #16326) #22457
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
layout-grid
platform/macOS 🍏
macOS / Mac Catalyst
t/bug
Something isn't working
Description
For my application I have a Grid with a ContentView Left and a Tabbed Page right side.
VS: In DebugMode I see the Exception, but I can run the application. In ReleaseView it won't start.
MS Code: It does not start in ether of the modes.
Exception:
2024-05-16 15:32:02.732 MyMauiApp[21498:10520592]
Unhandled Exception:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
---> System.InvalidOperationException: Parent of a Page must also be a Page
Steps to Reproduce
dotnet new maui -n "MyMauiApp"
Link to public reproduction project repository
No response
Version with bug
8.0.21 SR4.1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
The text was updated successfully, but these errors were encountered: