KGy SOFT

Command Class

KGy SOFT Core Libraries Help
Contains extension methods for the ICommand and INotifyPropertyChanged types as well as a couple of property binding creation methods for any object.
See the Remarks section of the ICommand interface for details and examples about commands.
Inheritance Hierarchy

SystemObject
  KGySoft.ComponentModelCommand

Namespace:  KGySoft.ComponentModel
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

public static class Command
Methods

  NameDescription
Public methodStatic memberCreateBinding(ICommand, IDictionaryString, Object, Boolean)
Creates a binding for a command without any sources and targets. At least one source must be added by the ICommandBinding.AddSource method to make the command invokable. Targets can be added by the ICommandBinding.AddTarget method.
Public methodStatic memberCreateBinding(ICommand, Object, String, Object)
Creates a binding for a command using the specified source, eventName and targets.
Public methodStatic memberCreateBinding(ICommand, Object, String, IDictionaryString, Object, Object)
Creates a binding for a command using the specified source, eventName and targets as well as the optionally provided initial state of the binding.
Public methodStatic memberCreatePropertyBinding(INotifyPropertyChanged, String, String, Object)
Creates a special binding for the PropertyChanged event of the specified source, which allows to update the specified targetPropertyName in the targets, when the property of sourcePropertyName changes in the source.
Public methodStatic memberCreatePropertyBinding(Object, String, String, Object)
Creates a special binding for the PropertyChanged or sourcePropertyNameChanged event of the specified source, which allows to update the specified targetPropertyName in the targets, when the property of sourcePropertyName changes in the source.
Public methodStatic memberCreatePropertyBinding(INotifyPropertyChanged, String, String, FuncObject, Object, Object)
Creates a special binding for the PropertyChanged event of the specified source, which allows to update the specified targetPropertyName in the targets, when the property of sourcePropertyName changes in the source.
Public methodStatic memberCreatePropertyBinding(Object, String, String, FuncObject, Object, Object)
Creates a special binding for the PropertyChanged or sourcePropertyNameChanged event of the specified source, which allows to update the specified targetPropertyName in the targets, when the property of sourcePropertyName changes in the source.
Top
See Also

Reference