Skip to main content
All docs
V25.1
  • SmartPasteBehavior.SmartPasteCommand Property

    Executes SmartPaste.

    Namespace: DevExpress.AIIntegration.Wpf

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

    NuGet Package: DevExpress.AIIntegration.Wpf

    Declaration

    public ICommand SmartPasteCommand { get; }

    Property Value

    Type Description
    ICommand

    The command.

    Remarks

    The following code snippet invokes SmartPaste when a user presses Ctrl+P:

    <dxmvvm:Interaction.Behaviors>
        <dxai:SmartPasteBehavior x:Name="smartPasteBehavior"/>
        <dxmvvm:KeyToCommand KeyGesture="CTRL+P" Command="{Binding SmartPasteCommand, ElementName=smartPasteBehavior}"/>
    </dxmvvm:Interaction.Behaviors>
    

    Refer to the following help topic for additional information and examples: Smart Paste.

    See Also