C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CommandParameterProperty System.Windows.DependencyProperty
CommandProperty System.Windows.DependencyProperty
MustToggleIsEnabledProperty System.Windows.DependencyProperty

Защищенные методы

Метод Описание
OnAttached ( ) : void

Called when this trigger is attached to a DependencyObject.

Приватные методы

Метод Описание
GetAssociatedObject ( ) : FrameworkElement

This method is here for compatibility with the Silverlight version.

GetCommand ( ) : ICommand

This method is here for compatibility with the Silverlight version.

Описание методов

OnAttached() защищенный Метод

Called when this trigger is attached to a DependencyObject.
protected OnAttached ( ) : void
Результат void

Описание свойств

CommandParameterProperty публичное статическое свойство

Identifies the CommandParameter dependency property
public static DependencyProperty,System.Windows CommandParameterProperty
Результат System.Windows.DependencyProperty

CommandProperty публичное статическое свойство

Identifies the Command dependency property
public static DependencyProperty,System.Windows CommandProperty
Результат System.Windows.DependencyProperty

MustToggleIsEnabledProperty публичное статическое свойство

Identifies the MustToggleIsEnabled dependency property
public static DependencyProperty,System.Windows MustToggleIsEnabledProperty
Результат System.Windows.DependencyProperty