C# Class AGENT.PackageViewer.Command.CommandReference

This class facilitates associating a key binding in XAML markup to a command defined in a View Model by exposing a Command dependency property. The class derives from Freezable to work around a limitation in WPF when data-binding from XAML.
Inheritance: System.Windows.DependencyObject, ICommand
Show file Open project: nothingmn/AGENT.Contrib

Public Properties

Property Type Description
CommandProperty System.Windows.DependencyProperty

Public Methods

Method Description
CanExecute ( object parameter ) : bool
CommandReference ( ) : System
Execute ( object parameter ) : void

Private Methods

Method Description
OnCommandChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

CanExecute() public method

public CanExecute ( object parameter ) : bool
parameter object
return bool

CommandReference() public method

public CommandReference ( ) : System
return System

Execute() public method

public Execute ( object parameter ) : void
parameter object
return void

Property Details

CommandProperty public static property

public static DependencyProperty,System.Windows CommandProperty
return System.Windows.DependencyProperty