Skip to main content
All docs
V25.1
  • GenerateImageDescriptionBehavior() Constructor

    Initializes a new instance of the GenerateImageDescriptionBehavior class.

    Namespace: DevExpress.AIIntegration.Wpf

    Assembly: DevExpress.AIIntegration.Wpf.v25.1.dll

    NuGet Package: DevExpress.AIIntegration.Wpf

    Declaration

    public GenerateImageDescriptionBehavior()

    Remarks

    To enable the “Generate Image Description” functionality in a DevExpress WPF Spreadsheet or Rich Text Editor, add mvvm and ai namespaces to the Window and attach GenerateImageDescriptionBehavior to the 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:dxsps="http://schemas.devexpress.com/winfx/2008/xaml/spreadsheet"
        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>
            <dxsps:SpreadsheetControl CommandBarStyle="Ribbon" ShowStatusBar="True" ShowFormulaBar="True">
                <dxmvvm:Interaction.Behaviors>
                    <dxai:GenerateImageDescriptionBehavior x:Name="GenerateImageDescription"/>
                </dxmvvm:Interaction.Behaviors>
            </dxsps:SpreadsheetControl>
        </Grid>
    </dx:ThemedWindow>
    

    Read the following class description for additional information and examples: GenerateImageDescriptionBehavior Class.

    See Also