Back to Devexpress

ChangeToneBehavior Class

wpf-devexpress-dot-aiintegration-dot-wpf-467d8588.md

latest3.1 KB
Original Source

ChangeToneBehavior Class

Adjusts the tone of the text to meet audience or context requirements.

Namespace : DevExpress.AIIntegration.Wpf

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

NuGet Package : DevExpress.AIIntegration.Wpf

Declaration

csharp
public class ChangeToneBehavior :
    TextModificationBehavior
vb
Public Class ChangeToneBehavior
    Inherits TextModificationBehavior

Remarks

Tone styles include:

  • Casual
  • Confident
  • Friendly
  • Professional
  • Straightforward

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

xaml
<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:ChangeToneBehavior x:Name="ChangeTone"/>
            </dxmvvm:Interaction.Behaviors>
        </dxe:TextEdit>
    </Grid>
</dx:ThemedWindow>

Read the following help topic section for additional information and examples: AI Assistant Extensions - Change Tone.

Inheritance

Show 12 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 DevExpress.AIIntegration.Wpf.Internal.TextBehaviorBase<DevExpress.AIIntegration.Wpf.Internal.ITextModificationBehaviorSource, DevExpress.AIIntegration.Wpf.Internal.CustomRequestViewModel> TextModificationBehavior ChangeToneBehavior

See Also

ChangeToneBehavior Members

DevExpress.AIIntegration.Wpf Namespace