CommandBindingsCollectionAddPropertyChangedHandlerBinding(INotifyPropertyChanged, ActionString, 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: 10.0.0
public ICommandBinding AddPropertyChangedHandlerBinding(
INotifyPropertyChanged source,
Action<string> handler,
params string[] propertyNames
)
Public Function AddPropertyChangedHandlerBinding (
source As INotifyPropertyChanged,
handler As Action(Of String),
ParamArray propertyNames As String()
) As ICommandBinding
public:
ICommandBinding^ AddPropertyChangedHandlerBinding(
INotifyPropertyChanged^ source,
Action<String^>^ handler,
... array<String^>^ propertyNames
)
member AddPropertyChangedHandlerBinding :
source : INotifyPropertyChanged *
handler : Action<string> *
propertyNames : string[] -> ICommandBinding
- source INotifyPropertyChanged
- The source object, whose PropertyChanged event is observed.
- handler ActionString
- The delegate to be invoked when the changed property is among the specified propertyNames. Its parameter is the name of the changed property.
- propertyNames String
- The property names, whose change invoke the specified handler.
ICommandBindingThe created
ICommandBinding instance that has been added to this
CommandBindingsCollection.