Skip to main content
All docs
V25.2
  • ReportLocalizationBehavior Class

    An AI-powered Localization functionality that translates all localizable property values to the selected language.

    Namespace: DevExpress.AIIntegration.Wpf.Reporting

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

    Declaration

    public class ReportLocalizationBehavior :
        ReportDesignerBehaviorBase

    Remarks

    AI-powered Report Localization allows you to translate report elements directly within the End-User Report Designer.

    AI-powered Report Localization - WPF Report Designer, DevExpress

    Install NuGet packages and attach the ReportLocalizationBehavior to the Report Designer to enable AI-powered Localization:

    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    xmlns:dxrud="http://schemas.devexpress.com/winfx/2008/xaml/reports/userdesigner" 
    xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
    xmlns:dxai="http://schemas.devexpress.com/winfx/2008/xaml/ai"
    
    <dxrud:ReportDesigner x:Name="reportDesigner">
        <dxmvvm:Interaction.Behaviors>
            <dxai:ReportLocalizationBehavior/>
        </dxmvvm:Interaction.Behaviors>
    </dxrud:ReportDesigner>
    

    The following code snippet attaches the ReportLocalizationBehavior to the Report Designer in code behind:

    using DevExpress.Xpf.Core;
    using DevExpress.Mvvm.UI.Interactivity;
    using DevExpress.AIIntegration.Wpf.Reporting;
    
    namespace DXReportsAILocalization {
        public partial class MainWindow : ThemedWindow {
            public MainWindow() {
                InitializeComponent();
    
                ReportLocalizationBehavior reportLocalizationBehavior = new ReportLocalizationBehavior();
                Interaction.GetBehaviors(reportDesigner).Add(reportLocalizationBehavior);
    
                reportDesigner.OpenDocument(new Report1());
            }
        }
    }
    

    Inheritance

    Show 11 items
    Object
    DispatcherObject
    DependencyObject
    Freezable
    Animatable
    DevExpress.Mvvm.UI.Interactivity.AttachableObjectBase
    DevExpress.Mvvm.UI.Interactivity.Behavior
    DevExpress.Mvvm.UI.Interactivity.Behavior<DependencyObject>
    DevExpress.AIIntegration.Wpf.Internal.AIBehavior
    ReportDesignerBehaviorBase
    ReportLocalizationBehavior
    See Also