Design Pattern Framework 3.5
CommandModel Class
Patterns-In-Action! Application ► WPFViewModel ► CommandModel
Abstract class that encapsulates a routed ui command.
Declaration Syntax
C# | Visual Basic |
public abstract class CommandModel
Public MustInherit Class CommandModel
Members
All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
CommandModel()()() |
Constructor
|
|
Command |
Gets the routed command.
|
|
Equals(Object) | (Inherited from Object.) |
|
Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
|
GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) |
|
MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
OnCanExecute(Object, CanExecuteRoutedEventArgs) |
Determines if a command is enabled. Override to provide custom behavior.
Do not call the base version when overriding.
|
|
OnExecute(Object, ExecutedRoutedEventArgs) |
Abstract method to execute the command. Needs implementation.
|
|
ToString()()() | (Inherited from Object.) |
Inheritance Hierarchy
Object | |
CommandModel |