Skip to main content
.NET 6.0+

Frame.SetTemplate(IFrameTemplate) Method

Sets a specified Template for the current Frame.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp


public void SetTemplate(
    IFrameTemplate val


Name Type Description
val IFrameTemplate

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.


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

See Also