Google News
logo
WPF - Interview Questions
What do you mean by Command Design Pattern in WPF?
In Object-Oriented Design patterns, the command pattern is one of the strongest design patterns. A command pattern refers to a design pattern that uses an object to encapsulate information required for triggering an action or event later. Method name, an object that owns the method, and the parameters of the method are among the information included here. In situations where you need to execute operations based on user requests, the command pattern is the best approach to manage objects.
 
 
WPF's command design pattern consists of the following members :
 
Client : Creates a command object and sets its receiver.

Invoker : Request command object to perform an action.

Command : Defines the Execute operation.

Concreate Command : Invokes the Execute operation on the receiver.

Receiver : Executes the action requested.
Advertisement