Frame.SetTemplate(IFrameTemplate) Method

Sets a specified Template for the current Frame.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public void SetTemplate(
    IFrameTemplate val
)
Public Sub SetTemplate(
    val As IFrameTemplate
)

Parameters

Type Name Description
IFrameTemplate val

An object that implements the IFrameTemplate interface to be used for the current Frame.

Use this method to set a Template specified by the template parameter for the current Frame. After setting the Template, the Frame.TemplateChanged event is raised. Handle this event to customize the Template that has been set for the current Frame.

If the current Frame contains a View, the SetTemplate method sets this View for the new Template.

Note

To set your own Template, it is recommended that you handle the XafApplication.CreateCustomTemplate event instead of using the SetTemplate method.

See Also