The mvc template shows how to show a different view

Hi I am creating a winform application using mvc template,

If I have a window form as a view with a button in it and I want to show another view (winform) when the button is clicked in the first form.

In this case, whether the view should notify the click button on the controller and the controller will instantiate the second form and show, or the first view will.

+1


source to share


1 answer


The controller should probably handle this. In the purest form of the MVC pattern, views should render for their own content, and any other logic, including rendering other views, is controller specific. (Actually, for many actions, this is all the controller does.)



+2


source







All Articles