Skip to main content
All docs
V25.2
  • ReportTestDataSourceBehavior() Constructor

    Initializes a new instance of the ReportTestDataSourceBehavior class.

    Namespace: DevExpress.AIIntegration.Wpf.Reporting

    Assembly: DevExpress.AIIntegration.Wpf.Reporting.v25.2.dll

    NuGet Package: DevExpress.AIIntegration.Wpf.Reporting

    Declaration

    public ReportTestDataSourceBehavior()

    Remarks

    The following code snippet registers a ReportTestDataSourceBehavior and attaches it to the WPF Report Designer (reportDesigner):

    using DevExpress.Xpf.Core;
    using DevExpress.Mvvm.UI.Interactivity;
    using DevExpress.AIIntegration.Wpf.Reporting;
    
    namespace WPFReportApp {
        public partial class MainWindow : ThemedWindow {
            public MainWindow() {
                InitializeComponent();
    
                var testDataSourceBehavior = new ReportTestDataSourceBehavior() {
                    RowCount = 10,
                    Temperature = 0
                };
    
                var behaviors = Interaction.GetBehaviors(reportDesigner);
                behaviors.Add(testDataSourceBehavior);
    
                reportDesigner.OpenDocument(new Report1());
            }
        }
    }
    
    See Also