locked
Is it OK for a View to use multiple Presenters? RRS feed

  • Question

  • I need to create a composite UI. Currently, I have two separate MVP codes for a TreeView and a Grid. Now I need to the create a UI with both a TreeView and Grid.

    Should I drop a TreeView and a Grid to the form and just instantiate the two existing Presenters?

    OR

    Should I encapsulate the TreeView and Grid first to Control (create a control that derives from TreeView with the MVP code in placed) classes, and use the derived Controls instead? This will however create a new MVP code for the composite UI.

    Which one is more standard? Or is another better approach?

     

    Friday, July 22, 2011 2:55 PM