Läs på engelska Redigera

Dela via


IPreviewCommand Interface

Definition

Provides methods for previewing commands without actually committing the action.

C#
public interface IPreviewCommand : System.Windows.Input.ICommand
Implements

Methods

CancelPreview()

Defines a method to be called to cancel previewing a command.

CanExecute(Object)

Determines whether the command can execute in its current state.

(Inherited from ICommand)
Execute(Object)

Defines the method to be called when the command is invoked.

(Inherited from ICommand)
Preview(Object)

Defines a method to be called when a command is previewed.

Events

CanExecuteChanged

Occurs when changes take place that affect whether or not the command should execute.

(Inherited from ICommand)

Applies to

Produkt Versioner
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10