C# Class SEToolbox.Services.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.Freezable, ICommand
ファイルを表示 Open project: midspace/SEToolbox Class Usage Examples

Public Properties

Property Type Description
CommandProperty System.Windows.DependencyProperty

Public Methods

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

Protected Methods

Method Description
CreateInstanceCore ( ) : System.Windows.Freezable

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

CreateInstanceCore() protected method

protected CreateInstanceCore ( ) : System.Windows.Freezable
return System.Windows.Freezable

Execute() public method

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

Property Details

CommandProperty public_oe static_oe property

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