wpf-devexpress-dot-aiintegration-dot-wpf-dot-smartautocompletebehavior.md
Gets or sets a delay before executing an AI action after the user stops typing. This is a dependency property.
Namespace : DevExpress.AIIntegration.Wpf
Assembly : DevExpress.AIIntegration.Wpf.v25.2.dll
NuGet Package : DevExpress.AIIntegration.Wpf
public int TypingPauseDelay { get; set; }
Public Property TypingPauseDelay As Integer
| Type | Description |
|---|---|
| Int32 |
The delay, in milliseconds.
|
Use the TypingPauseDelay setting to specify a delay, in milliseconds. Once the user stops typing, the extension waits for the specified delay before executing an AI action.
The following example activates the AI-powered “Smart Autocomplete” extension (SmartAutoCompleteBehavior) 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:SmartAutoCompleteBehavior x:Name="SmartAutocomplete" TypingPauseDelay="400"/>
</dxmvvm:Interaction.Behaviors>
</dxe:TextEdit>
</Grid>
</dx:ThemedWindow>
Read the following help topic for additional information: Smart Autocomplete.
See Also
SmartAutoCompleteBehavior Class