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

Represents a wrapper for commands.

Definition

Namespace:Telerik.Windows.Documents.Commands.Descriptors

Assembly:Telerik.Windows.Controls.FixedDocumentViewers.dll

Syntax:

C#
public abstract class CommandDescriptorBase : INotifyPropertyChanged

Inheritance: objectCommandDescriptorBase

Derived Classes: CommandDescriptorCompositeCommandDescriptor<T>

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the CommandDescriptorBase class.

C#
public CommandDescriptorBase(bool isEnabled = true)
Parameters:isEnabledbool

The is enabled.

Properties

Gets the command.

C#
public abstract ICommand Command { get; }
Property Value:

The command.

Gets or sets a value indicating the command descriptor is enabled.

C#
public bool IsEnabled { get; set; }
Property Value:

The is enabled.

Methods

Called when [property changed].

C#
protected void OnPropertyChanged(string name)
Parameters:namestring

The name.

Events

Occurs when a property value changes.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged