Property | Type | Description | |
---|---|---|---|
AutoInit | bool | ||
Current |
Method | Description | |
---|---|---|
CompileTemplate ( string type, string content, object>.Dictionary |
Compiles a template instance from the specified template type and content.
|
|
DeactivateFragment ( |
Deactivates the specified element and its children by disposing any behaviors or binding instances attached to the elements.
|
|
GetObject ( |
Gets an instance of the specified object type. An instance is created if one has not been registered with the container. A factory method is called if a factory has been registered or implemented on the object type.
|
|
GetSetting ( string name ) : string |
Gets the value of the specified setting.
|
|
GetTemplate ( string name ) : Template |
Gets a template instance from the specified template name. The specified name is used to lookup a script element with a matching id.
|
|
PublishEvent ( |
Raises the specified event. The type of the event arguments is used to determine which subscribers the event is routed to.
|
|
RegisterBehavior ( string name, |
Registers a behavior so it can be used declaratively in markup.
|
|
RegisterBinder ( string name, BinderFactory factory ) : void |
Registers a binder factory. The supplied name prefixed with "data-" is used as the attribute name in markup to create a binder.
|
|
RegisterExpression ( string name, ExpressionFactory factory ) : void |
Registers an expression factory. The supplied name is used in markup to represent an instance of the associated expression.
|
|
RegisterFactory ( |
Registers an object factory with the container. The factory is called when the particular object type is requested. The factory can decide whether to cache object instances it returns or not, based on its policy.
|
|
RegisterObject ( |
Registers an object instance for the specified object type.
|
|
RegisterService ( string name, |
Registers a service type.
|
|
RegisterTemplate ( string name, Template template ) : void |
Registers a template with the specified name.
|
|
RegisterTemplateEngine ( string name, TemplateEngine engine ) : void |
Registers a template engine. The supplied name is used to match against the mime type attribute on a template script element.
|
|
SubscribeEvent ( |
Subscribes to the specified type of events. The resulting cookie can be used for unsubscribing.
|
|
UnsubscribeEvent ( object subscriptionCookie ) : void |
Unsubcribes from a previously subscribed-to event type.
|
Method | Description | |
---|---|---|
ActivateFragment ( |
||
ActivateFragment ( |
||
Application ( ) : System | ||
AttachBehaviors ( |
Creates and attaches behaviors specified on the element declaratively.
|
|
BindContent ( |
||
BindValue ( |
||
BindVisibility ( |
||
DetachBehaviors ( |
Detaches all behaviors associated with the specified element.
|
|
GetTypeKey ( |
||
ProcessModelExpression ( object model, string expressionType, string value ) : |
||
RegisterBehavior ( string name, |
||
SetupBindings ( |
||
SetupServices ( ) : void |
public CompileTemplate ( string type, string content, object>.Dictionary |
||
type | string | The template engine to use to compile the template. |
content | string | The template content. |
options | object>.Dictionary | Any options to be passed to the template engine. |
return | Template |
public DeactivateFragment ( |
||
element | The element to deactivate. | |
contentOnly | bool | Whether the element should be deactivated, or only its contained content. |
return | void |
public GetObject ( |
||
objectType | The type of object to retrieve. | |
return | object |
public GetSetting ( string name ) : string | ||
name | string | The name of the setting. |
return | string |
public GetTemplate ( string name ) : Template | ||
name | string | The name to lookup a template. |
return | Template |
public PublishEvent ( |
||
eventArgs | The event arguments containing event-specific data. | |
return | void |
public RegisterBehavior ( string name, |
||
name | string | The unique name of the behavior. |
behaviorType | The type of the behavior. | |
serviceType | An option service type associated with the behavior for auto-registration with the application container. | |
return | void |
public RegisterBinder ( string name, BinderFactory factory ) : void | ||
name | string | The name of the expression handler. |
factory | BinderFactory | The factory being registered. |
return | void |
public RegisterExpression ( string name, ExpressionFactory factory ) : void | ||
name | string | The name of expression. |
factory | ExpressionFactory | The factory to be used to handle the supplied name. |
return | void |
public RegisterFactory ( |
||
objectType | ||
objectFactory | Func |
|
return | void |
public RegisterObject ( |
||
objectType | The type that can be used to lookup the specified object instance. | |
objectInstance | object | The object instance to use. |
return | void |
public RegisterService ( string name, |
||
name | string | The name of the service. |
serviceImplementationType | The type providing the implementation of the service. | |
serviceType | The type of the service. | |
return | void |
public RegisterTemplate ( string name, Template template ) : void | ||
name | string | The name of template. |
template | Template | The template to be used. |
return | void |
public RegisterTemplateEngine ( string name, TemplateEngine engine ) : void | ||
name | string | The name of template engine. |
engine | TemplateEngine | The engine to be used to handle the supplied name. |
return | void |
public SubscribeEvent ( |
||
eventType | The type of the event. | |
eventHandler | Callback | The event handler to invoke when the specified event type is raised. |
return | object |
public UnsubscribeEvent ( object subscriptionCookie ) : void | ||
subscriptionCookie | object | The subscription cookie. |
return | void |