Frame.SetTemplate(IFrameTemplate) Method
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
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.