tags:

views:

16

answers:

0

Is there any drawback to exposing a Presenter as public member on a View. On a project that I am on each page and user control has its own presenter. Now when editing grids (ahhhh) user control gets injected in a grid. I need to get a reference to the presenter for the user contrl. Options are:

  1. Use service locator (ObjectFactory.GetInstance ....). Don't like that
  2. Make page explicitly dependent on the multiple presenters. Don't like this either.
  3. Expose Presenter on the user control (View) and public or internal member. Now this seems clean, but is there a drawback.

Background: All wiring is done through StructureMap.