IRegion.Add Method (Object, String, Boolean)
Adds a new view to the region.
Namespace: Microsoft.Practices.Prism.Regions
Assembly: Microsoft.Practices.Prism (in Microsoft.Practices.Prism.dll)
Syntax
IRegionManager Add(
Object view,
string viewName,
bool createRegionManagerScope
)
'Declaration
Function Add ( _
view As Object, _
viewName As String, _
createRegionManagerScope As Boolean _
) As IRegionManager
Parameters
- view
Type: System.Object
The view to add.
- viewName
Type: System.String
The name of the view. This can be used to retrieve it later by calling GetView(String).
- 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.