Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

Frame.SetTemplate(IFrameTemplate) Method

Sets a specified Template for the current Frame.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public void SetTemplate(
    IFrameTemplate val
)

#Parameters

Name Type Description
val IFrameTemplate

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

#Remarks

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