I don't know your exact scenario and the exact way you are constructing your view and presenter (you might be using the View-First or Presenter-First
approaches described in UI Composition), but if you are using
Presenter-First you might be having an issue with the order in which your view and presenter are being instantiated.
In your code, when you are using
View Injection (using the
IRegion.Add Method) you are instantiating the view manually (though
So if you are using a Presenter-First approach, the presenter is never instantiated and injected into the view. If this is the case, the view is registered but no information is being populated.
When you are using the
View Discovery approach (using the
RegisterViewWithRegion method) the view gets instantiated through your container (Unity in most cases) so it first instantiates the Presenter to inject it in the view, so everything is in place and works fine.
The suggested approach in the documentation to
Show a View in a Region Using View Discovery UI Composition with a Presenter-First approach is using the second overload of the
Hope it helps!