Back to Devexpress

ReportDesignerBase.ServicesRegistry Property

wpf-devexpress-dot-xpf-dot-reports-dot-userdesigner-dot-reportdesignerbase.md

latest6.1 KB
Original Source

ReportDesignerBase.ServicesRegistry Property

Specifies a collection of End-User Report Designer services. This is a dependency property.

Namespace : DevExpress.Xpf.Reports.UserDesigner

Assembly : DevExpress.Xpf.ReportDesigner.v25.2.dll

NuGet Package : DevExpress.Wpf.Reporting

Declaration

csharp
public ObservableCollection<EntryBase> ServicesRegistry { get; set; }
vb
Public Property ServicesRegistry As ObservableCollection(Of EntryBase)

Property Value

TypeDescription
ObservableCollection<EntryBase>

A dynamic data collection of EntryBase objects.

|

Remarks

The following example illustrates how to register a specific customization service type in XAML.

xaml
<dxrud:ReportDesigner x:Name="reportDesigner">
    <dxrud:ReportDesigner.ServicesRegistry>
        <dxda:TypeEntry ServiceType="{x:Type dxrudw:IWizardCustomizationService}" ConcreteType="{x:Type local:MyWizardCustomizationService}" />
    </dxrud:ReportDesigner.ServicesRegistry>
</dxrud:ReportDesigner>

The following example illustrates how to register a specific customization service type in code.

csharp
using DevExpress.Xpf.DataAccess.DataSourceWizard;
using DevExpress.Xpf.Reports.UserDesigner.ReportWizard;
// ...

reportDesigner.ServicesRegistry.Add(new TypeEntry { 
    ServiceType = typeof(IWizardCustomizationService), 
    ConcreteType = typeof(MyWizardCustomizationService) 
});
vb
Imports DevExpress.Xpf.DataAccess.DataSourceWizard
Imports DevExpress.Xpf.Reports.UserDesigner.ReportWizard
' ...

reportDesigner.ServicesRegistry.Add(New TypeEntry() With { _
    Key .ServiceType = GetType(IWizardCustomizationService), _
    Key .ConcreteType = GetType(MyWizardCustomizationService) _
})

The following example illustrates how to register a customization service instance in code.

csharp
using DevExpress.Xpf.DataAccess.DataSourceWizard;
using DevExpress.Xpf.Reports.UserDesigner.ReportWizard;
// ...

reportDesigner.ServicesRegistry.Add(new InstanceEntry { 
    ServiceType = typeof(IWizardCustomizationService), 
    Instance = new MyWizardCustomizationService() 
});
vb
Imports DevExpress.Xpf.DataAccess.DataSourceWizard
Imports DevExpress.Xpf.Reports.UserDesigner.ReportWizard
' ...

reportDesigner.ServicesRegistry.Add(New InstanceEntry() With { _
    Key .ServiceType = GetType(IWizardCustomizationService), _
    Key .Instance = New MyWizardCustomizationService() _
})

The following code snippets (auto-collected from DevExpress Examples) contain references to the ServicesRegistry property.

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.

reporting-wpf-designer-data-provider-list/CS/WpfReportDesigner_CustomizeWizard/MainWindow.xaml#L13

xml
<dxrud:ReportDesigner x:Name="reportDesigner">
    <dxrud:ReportDesigner.ServicesRegistry>
        <dxda:TypeEntry ServiceType="{x:Type dxrudw:IWizardCustomizationService}" ConcreteType="{x:Type local:MyWizardCustomizationService}" />

reporting-wpf-designer-load-custom-assembly/CS/UseEFOptionsAndCustomization.xaml#L10

xml
<dxrud:ReportDesigner>
    <dxrud:ReportDesigner.ServicesRegistry>
        <dxda:InstanceEntry ServiceType="{x:Type dxrudwizard:IWizardCustomizationService}">

reporting-wpf-wizard-custom-page/CS/MainWindow.xaml#L12

xml
<dxrud:ReportDesigner>
    <dxrud:ReportDesigner.ServicesRegistry>
        <dxda:TypeEntry ServiceType="{x:Type dxrudw:IWizardCustomizationService}" ConcreteType="{x:Type local:WizardCustomizationService}" />

reporting-wpf-customize-color-schemes-report-wizard-page/CS/MainWindow.xaml#L15

xml
<dxrud:ReportDesigner>
    <dxrud:ReportDesigner.ServicesRegistry>
        <!-- Register the wizard customization service.-->

See Also

IWizardCustomizationService

GdiPlusImageRenderHook

Wizard Customization Overview

ReportDesignerBase Class

ReportDesignerBase Members

DevExpress.Xpf.Reports.UserDesigner Namespace