Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TranslateBehavior.Languages Property

Gets or sets a collection of target languages for text translation. This is a dependency property.

Namespace: DevExpress.AIIntegration.Wpf

Assembly: DevExpress.AIIntegration.Wpf.v24.2.dll

NuGet Package: DevExpress.AIIntegration.Wpf

#Declaration

public List<LanguageInfo> Languages { get; set; }

#Property Value

Type Description
List<LanguageInfo>

A collection of objects that contain information about specific cultures.

#Remarks

Use the Languages property to specify target languages for text translation.

The following example activates the AI-powered “Translate” extension in a TextEdit control:

<dx:ThemedWindow
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
    xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm" 
    xmlns:dxai="http://schemas.devexpress.com/winfx/2008/xaml/ai"
    x:Class="AIAssistant.MainWindow"
    Title="MainWindow" Height="800" Width="800">
    <Grid>
        <dxe:TextEdit TextWrapping="Wrap" AcceptsReturn="True" VerticalContentAlignment="Top">
            <dxmvvm:Interaction.Behaviors>
                <dxai:TranslateBehavior x:Name="Translate">
                    <dxai:LanguageInfo Culture="de-DE"/>
                    <dxai:LanguageInfo Culture="es-ES"/>
                </dxai:TranslateBehavior>
            </dxmvvm:Interaction.Behaviors>
        </dxe:TextEdit>
    </Grid>
</dx:ThemedWindow>

Read the following help topic section for additional information: AI Assistant Extensions - Translate.

See Also