ReportDesignerCommands Class
Provides access to Report Designer commands.
Namespace: DevExpress.Xpf.Reports.UserDesigner
Assembly: DevExpress.Xpf.ReportDesigner.v17.2.dll
Declaration
Related API Members
The following members accept/return ReportDesignerCommands objects:
Remarks
The Report Designer has various built-in commands allowing you to open, create, save and close report documents as well as perform actions with report elements.
The following code snippet demonstrates how to bind commands in the Report Designer with the example of adding a custom button to the Report Designer toolbar.
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"
xmlns:dxrud="http://schemas.devexpress.com/winfx/2008/xaml/reports/userdesigner"
Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded">
<dxrud:ReportDesigner>
<dxrud:ReportDesigner.RibbonCustomizationActions>
<dxb:InsertAction ContainerName="{x:Static dxrud:DefaultBarItemNames.ReportGroup}">
<dxb:InsertAction.Element>
<dxb:BarButtonItem LargeGlyph="{dx:DXImage Image=close_32x32.png}"
Glyph="{dx:DXImage Image=close_16x16.png}" Content="Close Document"
Command="{Binding Path=(dxrud:ReportDesigner.Designer).ActualCommands.CloseDocumentCommand,
RelativeSource={RelativeSource Self}}"/>
</dxb:InsertAction.Element>
</dxb:InsertAction>
</dxrud:ReportDesigner.RibbonCustomizationActions>
</dxrud:ReportDesigner>
</Window>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ReportDesignerCommands class.
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.