expressappframework-devexpress-dot-expressapp-dot-frame-507e3e69.md
Provides access to a Frame‘s Template.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public IFrameTemplate Template { get; }
Public ReadOnly Property Template As IFrameTemplate
| Type | Description |
|---|---|
| IFrameTemplate |
An object that implements the IFrameTemplate interface. It represents the current Frame’s Template.
|
Use the IFrameTemplate object which is returned by this property, to access its Action Containers collection.
The following examples demonstrate how to use this property:
The following code snippets (auto-collected from DevExpress Examples) contain references to the Template property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
private void View_ControlsCreated(object sender, EventArgs e) {
RibbonForm ribbonForm = Frame.Template as RibbonForm;
if(ribbonForm != null && ribbonForm.Ribbon != null) {
public override ICustomTemplate GetTemplate() {
return this.Frame.Template as ICustomTemplate;
}
See Also