danicristea7511 0 Newbie Poster

Hy all,

Can you please tell which is the best way: registering a command binding using CommandManager.RegisterClassCommandBinding method or using the following statement:
this.CommandBindings.Add(myCommand)?

From as far as I understood, using CommandManager.RegisterClassCommandBinding a memory leak occur becasue GC doesn't know to unregister the binding.

Which is the difference between those two methods of commanda registration and when to use each of them?

Thanks,
Daniela