A base generic user control class implementing the IView<(Of <(T>)>) interface. Has a strongly typed association to the controller (of the parameter type T).

It is recommended to inherit your user control view classes from this one instead of manually implementing the IView<(Of <(T>)>) interface. Neccessary IView<(Of <(T>)>) members may be overriden.

Namespace:  MVCSharp.Winforms
Assembly:  MVCSharp (in MVCSharp.dll)
Version: 0.8.5217.34148

Syntax

C#
public class WinUserControlView<T> : UserControl, INotifiedView, 
	IView<T>, IView where T : class, IController
Visual Basic (Declaration)
Public Class WinUserControlView(Of T As {Class, IController}) _
	Inherits UserControl _
	Implements INotifiedView, IView(Of T), IView
Visual C++
generic<typename T>
where T : ref class, IController
public ref class WinUserControlView : public UserControl, 
	INotifiedView, IView<T>, IView

Type Parameters

T

Remarks

This class also implements the INotifiedView interface (with empty methods) so in derived classes it is possible to override Activate and Initialize methods specifying response to (de)activation and initialization events.

Inheritance Hierarchy

System..::.Object
  System..::.MarshalByRefObject
    System.ComponentModel..::.Component
      System.Windows.Forms..::.Control
        System.Windows.Forms..::.ScrollableControl
          System.Windows.Forms..::.ContainerControl
            System.Windows.Forms..::.UserControl
              MVCSharp.Winforms..::.WinUserControlView<(Of <(T>)>)

See Also