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.
Mostrar archivo 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_oe static_oe property

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

CommandProperty public_oe static_oe property

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

MustToggleIsEnabledProperty public_oe static_oe property

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