Click or drag to resize

DataContextViewTContext Class

Base class for a view that has a data context.
Inheritance Hierarchy
SystemObject
  UnityEngineObject
    UnityEngineComponent
      UnityEngineBehaviour
        UnityEngineMonoBehaviour
          strange.extensions.mediation.implView
            Slash.Unity.DataBind.StrangeIoCDataContextViewTContext

Namespace:  Slash.Unity.DataBind.StrangeIoC
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class DataContextView<TContext> : View
where TContext : Context

Type Parameters

TContext
Type of data context.

The DataContextViewTContext type exposes the following members.

Constructors
  NameDescription
Public methodDataContextViewTContext
Initializes a new instance of the DataContextViewTContext class
Top
Properties
  NameDescription
Public propertyContext
Current context of the view.
Top
Methods
  NameDescription
Protected methodOnDestroy
Unity callback.
(Overrides ViewOnDestroy.)
Protected methodRegisterContext
Called when the view should register itself to the specified context. E.g. add listeners to events.
Protected methodStart
Unity callback.
(Overrides ViewStart.)
Protected methodUnregisterContext
Called when the view should unregister itself from the specified context. E.g. remove listeners to events.
Top
Events
  NameDescription
Public eventContextChanged
Called when the context of the view changed.
Top
See Also