Interface IRegionViewRegistry
Defines the interface for the registry of region's content.
Namespace: Sartorius.SAF.Presentation.Regions
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public interface IRegionViewRegistry
Methods
View SourceGetContents(string)
Returns the contents associated with a region name.
Declaration
IEnumerable<object> GetContents(string regionName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | regionName | Region name for which contents are requested. |
Returns
| Type | Description |
|---|---|
| IEnumerable<object> | Collection of contents associated with the |
RegisterViewWithRegion(string, Func<object>)
Registers a delegate that can be used to retrieve the content associated with a region name.
Declaration
void RegisterViewWithRegion(string regionName, Func<object> getContentDelegate)
Parameters
| Type | Name | Description |
|---|---|---|
| string | regionName | Region name to which the |
| Func<object> | getContentDelegate | Delegate used to retrieve the content associated with the |
RegisterViewWithRegion(string, Type)
Registers a content type with a region name.
Declaration
void RegisterViewWithRegion(string regionName, Type viewType)
Parameters
| Type | Name | Description |
|---|---|---|
| string | regionName | Region name to which the |
| Type | viewType | Content type to be registered for the |
Events
View SourceContentRegistered
Event triggered when a content is registered to a region name.
Declaration
event EventHandler<ViewRegisteredEventArgs> ContentRegistered
Event Type
| Type | Description |
|---|---|
| EventHandler<ViewRegisteredEventArgs> |
Remarks
This event uses weak references to the event handler to prevent this service (typically a singleton) of keeping the target element longer than expected. For security reasons, to use weak delegates in Silverlight you must provide a delegate that is available in the public API of the class (no private or anonymous delegates allowed).