IRegion.Add Method (Object, String, Boolean)

Adds a new view to the region.

Namespace:  Microsoft.Practices.Composite.Regions
Assembly:  Microsoft.Practices.Composite (in Microsoft.Practices.Composite.dll)

Syntax

'Declaration
Function Add ( _
    view As Object, _
    viewName As String, _
    createRegionManagerScope As Boolean _
) As IRegionManager
IRegionManager Add(
    Object view,
    string viewName,
    bool createRegionManagerScope
)
IRegionManager^ Add(
    Object^ view, 
    String^ viewName, 
    bool createRegionManagerScope
)
function add(view, viewName, createRegionManagerScope);

Parameters

  • createRegionManagerScope
    Type: System.Boolean
    When truetrue (True in Visual Basic), the added view will receive a new instance of IRegionManager, otherwise it will use the current region manager for this region.

Return Value

The IRegionManager that is set on the view if it is a DependencyObject.

See Also

IRegion Interface

Add Overload

Microsoft.Practices.Composite.Regions Namespace