C# Класс Nexus.Client.Commands.CommandBindingBase

The base class for command bindings.
Наследование: ICommandBinding
Показать файл Открыть проект

Открытые методы

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

Executes the command.

Unbind ( ) : void

Disposes of the binding.

After this method is called, the binding between the trigger and command should no longer exist. In other words, activating the trigger should no longer execute the command.

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

Метод Описание
CommandBindingBase ( object p_objTrigger, ICommand p_cmdCommand ) : System

A simple constructor that initializes the object with the given values.

OnCommandPropertyChanged ( PropertyChangedEventArgs e ) : void

Alters properties on the Trigger in response to property changes on the command.

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

Метод Описание
CommandPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Handles the INotifyPropertyChanged.PropertyChanged event of the command.

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

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

A simple constructor that initializes the object with the given values.
protected CommandBindingBase ( object p_objTrigger, ICommand p_cmdCommand ) : System
p_objTrigger object The object that can trigger the command.
p_cmdCommand ICommand The command that can be triggered.
Результат System

Execute() публичный абстрактный Метод

Executes the command.
public abstract Execute ( ) : void
Результат void

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

Alters properties on the Trigger in response to property changes on the command.
protected OnCommandPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs A describing the changed property.
Результат void

Unbind() публичный абстрактный Метод

Disposes of the binding.
After this method is called, the binding between the trigger and command should no longer exist. In other words, activating the trigger should no longer execute the command.
public abstract Unbind ( ) : void
Результат void