-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Open
Description
Description
When using nested Regions with Prism.Maui, injection behaves inconsistently across platforms:
On Android, only the first guest ContentView (B_g) is successfully injected into its host Region (A_h). The second guest ContentView (C_g), which should be injected into the nested host Region (B_h), fails silently — the nested host Region (B_h) remains empty.
On Windows and iOS, both injections (B_g into A_h, and C_g into B_h) work correctly as expected.
Steps to Reproduce
- Place a (host) ContentView A_h on a ContentPage P and assign a Prism Region to A_h (e.g., "FirstLevelRegion").
- Create a (guest) ContentView B_g that will later be injected into the Region hosted by A_h.
- Inside (guest) B_g, place a (host) ContentView B_h and assign a Prism Region to B_h (e.g., "SecondLevelRegion").
- Create a (guest) ContentView C_g that will later be injected into the Region hosted by B_h.
ContentPage P
└── Host ContentView A_h [Region: FirstLevelRegion]
└── Guest ContentView B_g
└── Host ContentView B_h [Region: SecondLevelRegion]
└── Guest ContentView C_g
Platform with bug
.NET MAUI
Affected platforms
Android
Did you find any workaround?
No response