CommandBindingsCollectionAddPropertyChangedHandlerBinding(INotifyPropertyChanged, Action, String) Method
Creates a special command binding for the
PropertyChanged event of the specified
source
that invokes the specified
handler only when the changed property is among the specified
propertyNames.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
public ICommandBinding AddPropertyChangedHandlerBinding(
INotifyPropertyChanged source,
Action handler,
params string[] propertyNames
)
Public Function AddPropertyChangedHandlerBinding (
source As INotifyPropertyChanged,
handler As Action,
ParamArray propertyNames As String()
) As ICommandBinding
public:
ICommandBinding^ AddPropertyChangedHandlerBinding(
INotifyPropertyChanged^ source,
Action^ handler,
... array<String^>^ propertyNames
)
member AddPropertyChangedHandlerBinding :
source : INotifyPropertyChanged *
handler : Action *
propertyNames : string[] -> ICommandBinding
- source INotifyPropertyChanged
- The source object, whose PropertyChanged event is observed.
- handler Action
- The delegate to be invoked when the changed property is among the specified propertyNames.
- propertyNames String
- The property names, whose change invoke the specified handler.
ICommandBindingThe created
ICommandBinding instance that has been added to this
CommandBindingsCollection.