show method not called when inheriting from ViewControl

Mar 14, 2010 at 7:51 PM


As I'm used in working with one mainform + the loading of usercontrols in a more or less similar way as your MVC framework (with a navigator-class but without the Controller and Model-part).
I started today to see the benefits of working with the MVC framework instead of my framework.

I created a single form and a MenuView. The MenuView inherits ViewControl (not  IView<TModel>).
In the MenuView I have overridden the Show method (setting the menutext etc...), but it never gets called when navigating to this view. (It only gets called when the MenuView inherits IView<>).

Any idea on this one? As ViewControl as well as IView<> inherit IView which implements the Show-method I thought this should work or am I missing something here?

Thanks in advance