Target Platform/Framework: Cross-Platform DevExpress Product Libraries Used: DevExpress AI-powered Extensions for OpenAI, Azure, Ollama, Semantic Kernel (https://www.devexpress.com/ai) Available in the following DevExpress Subscription(s): Universal, DXperience, WPF, Reporting
Install
| Product | Versions |
|---|---|
| .NET | |
| Other |
README
DevExpress WPF AI-powered Extensions
DevExpress.AIIntegration.Wpf contains DevExpress AI-powered extensions (behaviors) for WPF applications. The package does not contain any controls. Instead, it adds AI capabilities to DevExpress WPF controls available as separate packages. Attach a behavior to a control to add an AI-powered feature.
DevExpress.AIIntegration.Wpf contains DevExpress AI-powered extensions (behaviors) for WPF applications. The package doesn't contain any controls. Instead, it adds AI capabilities to DevExpress WPF controls available as separate packages. You can attach a behavior to a control and the control gains an AI-driven feature.
Key Features
Flexible AI Provider Integration: Supports OpenAI, Azure OpenAI, Semantic Kernel connectors, and self-hosted models such as Ollama.
AI Assistant Menu:
AIToolsBehavioradds a menu of AI operations to a control. Handle theCustomizeMenuEventArgsevent to change the set of available commands.Text-Editing Behaviors:
SummarizeBehavior,TranslateBehavior,ProofreadBehavior,ExpandBehavior,ShortenBehavior,ChangeToneBehavior,ChangeStyleBehavior, andExplainBehaviorprocess the current selection.CustomRequestBehaviorsends your own prompt.Smart Autocomplete:
SmartAutoCompleteBehaviorsuggests text completions inTextEditandMemoEdit.Smart Paste:
SmartPasteBehaviordistributes clipboard content across appropriate fields inTableView,TreeListView,CardView, andLayoutControl.Smart Search and Semantic Search:
SmartSearchBehaviorsearches ribbon commands in aThemedWindowand items in anAccordionControl.SemanticSearchBehaviorperforms meaning-based searches inGridControl.Prompt-to-Expression:
PromptToExpressionBehaviorandAIExpressionGenerationSettingsgenerate valid expressions from natural language descriptions in the Expression Editor and Filter Editor.Document Behaviors:
DocumentSummarizeBehavior,DocumentTranslateBehavior, andDocumentTranslateInlineBehaviorprocess documents inRichEditControl,SpreadsheetControl,PdfViewerControl, andDocumentPreviewControl.Specialized Behaviors:
ExplainFormulaBehaviorexplains a spreadsheet formula in plain language.GenerateImageDescriptionBehaviorgenerates alt text for images.
Examples
Register an AI Service
Register a chat client at application startup:
using Azure.AI.OpenAI;
using DevExpress.AIIntegration;
using Microsoft.Extensions.AI;
using System;
using System.ClientModel;
using System.Windows;
namespace MyApplication {
public partial class App : Application {
static App() {
IChatClient chatClient = new AzureOpenAIClient(
new Uri("YOUR_AZURE_OPENAI_ENDPOINT"),
new ApiKeyCredential("YOUR_OPENAI_API_KEY"))
.GetChatClient("YOUR_MODEL_NAME").AsIChatClient();
AIExtensionsContainerDesktop.Default.RegisterChatClient(chatClient);
}
}
}
Attach a Behavior in XAML
Behaviors are attached through dxmvvm:Interaction.Behaviors:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dxre="http://schemas.devexpress.com/winfx/2008/xaml/richedit"
xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
xmlns:dxai="http://schemas.devexpress.com/winfx/2008/xaml/ai">
<dxre:RichEditControl>
<dxmvvm:Interaction.Behaviors>
`AIToolsBehavior` adds multiple AI-powered operations to the control and provides a context menu that allows users to initiate these operations. For some behaviors, you need to implement your own UI to access operations and call the behavior's method.
<dxai:AIToolsBehavior />
</dxmvvm:Interaction.Behaviors>
</dxre:RichEditControl>
</Window>
AIToolsBehavior adds multiple AI-powered operations to the control and adds a context menu that allows users to initiate these operations. With some behaviors, you need to implement your own operation access UI and call the behavior's method manually.
Demos
NOTE: Demo links below only work if you already have DevExpress WPF Demos installed on your machine. To install demos, download and run the DevExpress Unified Installer (evaluation or licensed version). Remember to select "Demo Applications" on the product selection screen.
- DevExpress WPF AI-powered Extensions - Text Editor
- DevExpress WPF AI-powered Extensions - Smart Autocomplete
- DevExpress WPF AI-powered Extensions - Smart Paste
- DevExpress WPF AI-powered Extensions - Semantic Search
Documentation
Evaluation Period, Pricing Options, and Licensing Terms
Whether you own a license or want to start a 30-day evaluation, download and register your DevExpress license key. To obtain the key, sign in to the DevExpress Download Manager with your existing DevExpress.com account or create a free account. For instructions on key registration, see License Key for DevExpress Products.
If you purchase a license after evaluating a product, you need to re-register your updated DevExpress license key to remove evaluation warnings and messages.
This package is included in the following commercial subscriptions:
See DevExpress Subscriptions & Licensing for subscription comparison tables, purchasing FAQ, and licensing information.
Related Components/Packages
DevExpress.AIIntegration.Wpf.Chat - The DevExpress WPF AI Chat control.
dotnet add package DevExpress.AIIntegration.Wpf.Chat
DevExpress.AIIntegration.Wpf.Reporting - AI-powered extensions for the WPF Report Designer.
dotnet add package DevExpress.AIIntegration.Wpf.Reporting
Software Bill of Materials (SBOM)
For information about SBOM files for DevExpress packages, see Software Bill of Materials (SBOM) for DevExpress .NET assemblies/NuGet packages, JavaScript, VCL and other redistributable artifacts.
See Also: Information Security | Security - What You Need to Know
Useful Online Resources
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.