New to Telerik UI for WPFStart a free 30-day trial

Represents the base FixedDocumentViewer command.

Definition

Constructors

Initializes a new instance of the FixedDocumentViewerCommandBase class.

C#
public FixedDocumentViewerCommandBase(FixedDocumentViewerBase fixedDocumentViewerBase)
Parameters:fixedDocumentViewerBaseFixedDocumentViewerBase

The fixed document viewer base.

Properties

Gets or sets the viewer.

C#
protected FixedDocumentViewerBase Viewer { get; }
Property Value:

The viewer.

Methods

Defines the method that determines whether the command can execute in its current state.

C#
public bool CanExecute(object parameter)
Parameters:parameterobject

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Returns:

bool

true if this command can be executed; otherwise, false.

Implements: ICommand.CanExecute(object)

Determines whether the command can be executed.

C#
public virtual bool CanExecuteOverride(object parameter)
Parameters:parameterobject

The parameter.

Returns:

bool

Returns if the command can be executed.

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

C#
public virtual void Execute(object parameter)
Parameters:parameterobject

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Implements: ICommand.Execute(object)

Called when CanExecute is changed..

C#
protected void OnCanExecuteChanged()

Events

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

C#
public event EventHandler CanExecuteChanged

Implements: ICommand.CanExecuteChanged