Back to Devexpress

Templates for DevExpress Components

coderushforroslyn-402947-coding-assistance-code-templates-templates-for-blazor-templates-for-devexpress-components.md

latest4.5 KB
Original Source

Templates for DevExpress Components

  • Jan 31, 2023
  • 2 minutes to read

CodeRush allows you to create popular DevExpress components for Blazor. For example, type fl and press Tab (or Space , depending on your settings) to create a DxFormLayout Blazor component with fields. These fields allow you to quickly change properties. When the caret is inside the DxFormLayout component, you can expand the i template to create a new layout item.

Important

Visual Studio IntelliSense has priority over CodeRush templates. For information on how to prioritize a CodeRush template over Visual Studio IntelliSense , refer to the following topic section: Expand a Template Instead of Visual Studio IntelliSense.

The following tables list templates for DevExpress Blazor components:

Button

TemplateDescription
xbCreates a Button component (DxButton).

Chart

Code templates for creating charts:

TemplateDescription
xchCreates a chart component (DxChart).
rbCreates a range bar series (DxChartRangeBarSeries). You can expand this template on an empty line inside a DxChart.
TemplateDescription
xcmCreates a Context Menu component (DxContextMenu). Use the “i” code template (see below) to add menu items.
flCreates a Form Layout component (DxFormLayout). Use the “i” code template (see below) to add form layout items.
xpaCreates a Pager component (DxPager).
xpopCreates a Popup component (DxPopup).
xslCreates a Stack Layout component (DxStackLayout).
taCreates a Tab (DxTab) inside a Tabs component.
tpCreates a Tab with content (DxTabPage) inside a Tabs component.
xtaCreates a Tabs component (DxTabs).
xtbCreates a Toolbar component (DxToolbar).
xtvCreates a TreeView component (DxTreeView). Use the “n” code template (see below) to add nodes.

Items

Use the “i” code template to add child items to parent components.

TemplateDescription
iCreates a DxContextMenuItem, DxFormLayoutItem, DxStackLayoutItem, or DxDataGridSummaryItem inside the corresponding parent component.

Nodes

Use the “n” code template to add child nodes to a tree view.

TemplateDescription
nCreates a DxTreeViewNode inside the TreeView component.

Pivot Grid

TemplateDescription
xpgCreates a pivot grid component (DxPivotGrid).
fCreates a pivot grid field (DxPivotGridField). Expand this code template on an empty line inside a DxPivotGrid to create the field.

Reports

TemplateDescription
xdvCreates a DxDocumentViewer component that is used to publish (preview, print, and export) documents in Blazor applications (DxDocumentViewer).
xrdCreates a DxReportDesigner component to create an End-User Report Designer in Blazor applications (DxReportDesigner).

Scheduler

TemplateDescription
xschCreates a calendar and scheduler component (DxScheduler).

Upload

TemplateDescription
xupCreates an Upload component (DxUpload).