Show / Hide Table of Contents

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 Source

GetContents(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 regionName.

View Source

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 getContentDelegate will be registered.

Func<object> getContentDelegate

Delegate used to retrieve the content associated with the regionName.

View Source

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 viewType will be registered.

Type viewType

Content type to be registered for the regionName.

Events

View Source

ContentRegistered

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).

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX