C# Class GalaSoft.MvvmLight.Command.EventToCommand

This System.Windows.Interactivity.TriggerAction can be used to bind any event on any FrameworkElement to an ICommand. Typically, this element is used in XAML to connect the attached element to a command located in a ViewModel. This trigger can only be attached to a FrameworkElement or a class deriving from FrameworkElement.
Show file Open project: leetreveil/Zune-Social-Tagger Class Usage Examples

Public Properties

Property Type Description
CommandParameterProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
MustToggleIsEnabledProperty System.Windows.DependencyProperty

Protected Methods

Method Description
OnAttached ( ) : void

Called when this trigger is attached to a DependencyObject.

Private Methods

Method Description
GetAssociatedObject ( ) : FrameworkElement

This method is here for compatibility with the Silverlight version.

GetCommand ( ) : ICommand

This method is here for compatibility with the Silverlight version.

Method Details

OnAttached() protected method

Called when this trigger is attached to a DependencyObject.
protected OnAttached ( ) : void
return void

Property Details

CommandParameterProperty public static property

Identifies the CommandParameter dependency property
public static DependencyProperty,System.Windows CommandParameterProperty
return System.Windows.DependencyProperty

CommandProperty public static property

Identifies the Command dependency property
public static DependencyProperty,System.Windows CommandProperty
return System.Windows.DependencyProperty

MustToggleIsEnabledProperty public static property

Identifies the MustToggleIsEnabled dependency property
public static DependencyProperty,System.Windows MustToggleIsEnabledProperty
return System.Windows.DependencyProperty