xtrareports-devexpress-dot-xtrareports-dot-userdesigner-dot-xrdesignformexbase-78e2156d.md
Gets or sets the Design Panel used to edit a report in the current End-User Designer form.
Namespace : DevExpress.XtraReports.UserDesigner
Assembly : DevExpress.XtraReports.v25.2.Extensions.dll
NuGet Package : DevExpress.Win.Reporting
[Browsable(false)]
public XRDesignPanel DesignPanel { get; set; }
<Browsable(False)>
Public Property DesignPanel As XRDesignPanel
| Type | Description |
|---|---|
| XRDesignPanel |
An XRDesignPanel object, which represents the Design Panel associated with the form.
|
Use the DesignPanel property to either access a XRDesignPanel associated with the current XRDesignFormExBase object, or assign a new Design Panel to it.
The report currently being edited in the Design Panel is accessed via the XRDesignPanel.Report property.
Note
Within an MDI End-User Designer, the XRDesignForm.DesignMdiController property of an XRDesignForm object should be used instead.
This example illustrates how to hide some of the Report Designer commands by calling the XRDesignMdiController.SetCommandVisibility method of a Design form’s XRDesignMdiController.
using DevExpress.XtraReports.UI;
using DevExpress.XtraReports.UserDesigner;
// ...
private void button1_Click(object sender, System.EventArgs e) {
// Create a Design Tool with an assigned report instance.
ReportDesignTool designTool = new ReportDesignTool(new XtraReport1());
// Access the standard or ribbon-based Designer form and its MDI Controller.
// IDesignForm designForm = designTool.DesignForm;
IDesignForm designForm = designTool.DesignRibbonForm;
XRDesignMdiController mdiController = designForm.DesignMdiController;
// Hide the "New with Wizard..." item on the File menu,
// and the "Design in Report Wizard..." item in the report's smart tag.
mdiController.SetCommandVisibility(ReportCommand.NewReportWizard, CommandVisibility.None);
mdiController.SetCommandVisibility(ReportCommand.VerbReportWizard, CommandVisibility.None);
// Load a Report Designer in a dialog window.
// designTool.ShowDesignerDialog();
designTool.ShowRibbonDesignerDialog();
}
Imports DevExpress.XtraReports.UI
Imports DevExpress.XtraReports.UserDesigner
'...
Private Sub button1_Click(sender As Object, e As System.EventArgs)
' Create a Design Tool with an assigned report instance.
Dim designTool As New ReportDesignTool(New XtraReport1())
' Access the standard or ribbon-based Designer form and its MDI Controller.
' Dim designForm As IDesignForm = designTool.DesignForm
Dim designForm As IDesignForm = designTool.DesignRibbonForm
Dim mdiController As XRDesignMdiController = designForm.DesignMdiController
' Hide the "New with Wizard..." item on the File menu,
' and the "Design in Report Wizard..." item in the report's smart tag.
mdiController.SetCommandVisibility(ReportCommand.NewReportWizard, CommandVisibility.None)
mdiController.SetCommandVisibility(ReportCommand.VerbReportWizard, CommandVisibility.None)
' Load a Report Designer in a dialog window.
' designTool.ShowDesignerDialog()
designTool.ShowRibbonDesignerDialog()
End Sub
See Also