Back to Devexpress

SmartPasteBehavior.SmartPasteCommand Property

wpf-devexpress-dot-aiintegration-dot-wpf-dot-smartpastebehavior-2f721528.md

latest1.6 KB
Original Source

SmartPasteBehavior.SmartPasteCommand Property

Executes SmartPaste.

Namespace : DevExpress.AIIntegration.Wpf

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

NuGet Package : DevExpress.AIIntegration.Wpf

Declaration

csharp
public ICommand SmartPasteCommand { get; }
vb
Public ReadOnly Property SmartPasteCommand As ICommand

Property Value

TypeDescription
ICommand

The command.

|

Remarks

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

xaml
<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

SmartPasteBehavior Class

SmartPasteBehavior Members

DevExpress.AIIntegration.Wpf Namespace