Share via


IPreviewCommand Interface

Extends the ICommand interface with the ability to preview a command before executing it.

Namespace:  Microsoft.Windows.Input
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Interface IPreviewCommand _
    Inherits ICommand
public interface IPreviewCommand : ICommand
public interface class IPreviewCommand : ICommand
type IPreviewCommand =  
    interface
        interface ICommand
    end
public interface IPreviewCommand extends ICommand

The IPreviewCommand type exposes the following members.

Methods

  Name Description
Public method CancelPreview Defines the method that cancels a pending preview.
Public method CanExecute Defines the method that determines whether the command can execute in its current state. (Inherited from ICommand.)
Public method Execute Defines the method to be called when the command is invoked. (Inherited from ICommand.)
Public method Preview Defines the method used to preview the command.

Top

Events

  Name Description
Public event CanExecuteChanged Occurs when changes occur that affect whether or not the command should execute. (Inherited from ICommand.)

Top

See Also

Reference

Microsoft.Windows.Input Namespace