Back to Devexpress

Hide and Customize Dock Panels (Report Analyzer, Report Explorer and others) in the Report Designer for WPF

xtrareports-116785-desktop-reporting-wpf-reporting-end-user-report-designer-for-wpf-api-and-customization-hide-and-customize-dock-panels-in-the-report-designer.md

latest4.0 KB
Original Source

Hide and Customize Dock Panels (Report Analyzer, Report Explorer and others) in the Report Designer for WPF

  • Apr 26, 2024

Use the following Report Designer options to specify dock panel visibility and behavior:

Panel TypeAPI (Options)
Field ListReportDesigner.FieldListOptions
Properties WindowReportDesigner.PropertyGridOptions
Report ExplorerReportDesigner.ReportExplorerOptions
Report GalleryReportDesigner.ReportGalleryOptions
Group and Sort PanelReportDesigner.GroupAndSortPanelOptions
Report Design AnalyzerReportDesigner.ErrorPanelOptions

View Example: How to customize dock panels in the WPF Report Designer

xml
<Window x:Class="Reporting_Customize_Dock_Panels_In_Wpf_Report_DesignerDesigner.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:dxrud="http://schemas.devexpress.com/winfx/2008/xaml/reports/userdesigner"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" WindowState="Maximized" UseLayoutRounding="True">
    <dxrud:ReportDesigner Name="designer">
        <!--Close the Group and Sort Panel.-->
        <dxrud:ReportDesigner.GroupAndSortPanelOptions>
            <dxrud:GroupAndSortPanelOptions Visibility="Closed"/>
        </dxrud:ReportDesigner.GroupAndSortPanelOptions>
        <!--Set auto-hide mode for the Report Explorer.-->
        <dxrud:ReportDesigner.ReportExplorerOptions>
            <dxrud:ReportExplorerOptions Visibility="Hidden" />
        </dxrud:ReportDesigner.ReportExplorerOptions>
        <!--Sort the fields in the Field List in descending order.-->
        <dxrud:ReportDesigner.FieldListOptions>
            <dxrud:FieldListOptions SortOrder="Descending"/>
        </dxrud:ReportDesigner.FieldListOptions>
        <!--Do not group properties into tabs and show favorite properties.-->
        <dxrud:ReportDesigner.PropertyGridOptions>
            <dxrud:PropertyGridOptions UseTabbedView="False" ShowFavoriteProperties="True"/>
        </dxrud:ReportDesigner.PropertyGridOptions>
        <!--Hide the Report Design Analyzer panel.-->
        <dxrud:ReportDesigner.ErrorPanelOptions >
            <dxrud:ErrorPanelOptions Visibility="Closed" />
        </dxrud:ReportDesigner.ErrorPanelOptions>
    </dxrud:ReportDesigner>
</Window>

The following image shows the result.

You can use the Windows toolbar button to hide Tool windows: