IPreviewCommand Interface

.NET Framework (current version)
 

Provides methods for previewing commands without actually committing the action

Namespace:   Microsoft.Windows.Input
Assembly:  System.Windows.Controls.Ribbon (in System.Windows.Controls.Ribbon.dll)

public interface IPreviewCommand : ICommand

NameDescription
System_CAPS_pubmethodCancelPreview()

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

System_CAPS_pubmethodCanExecute(Object)

Defines the method that determines whether the command can execute in its current state.(Inherited from ICommand.)

System_CAPS_pubmethodExecute(Object)

Defines the method to be called when the command is invoked.(Inherited from ICommand.)

System_CAPS_pubmethodPreview(Object)

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

NameDescription
System_CAPS_pubeventCanExecuteChanged

Occurs when changes occur that affect whether or not the command should execute.(Inherited from ICommand.)

.NET Framework
Available since 4.5
Return to top
Show: