Skip to main content

How to: Invoke the Chart Designer at Runtime

To show the Chart Designer to end-users, create an instance of the ChartDesigner class using the constructor that receives an ChartControl object as a parameter. Then, call the ChartDesigner.ShowDialog method.

View Example

using DevExpress.XtraCharts.Designer;
using System.Windows.Forms;

namespace ChartDesignerRuntime {
    public partial class Form1 : DevExpress.XtraBars.Ribbon.RibbonForm {
        public Form1() {
            // This line of code is generated by Data Source Configuration Wizard

        private void btnRunDesigner_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
            ChartDesigner designer = new ChartDesigner(chartControl1);