How to pass multiple parameters through command parameter in WPF?

how to pass multiple parameters through command parameter in WPF? Do we need to create an object and pass if this can help me with an example

+4
source share
2 answers

Perhaps you can use MultiBinding with a converter that will create an object for you ...

+4
source

I suppose it would be enough to pass the underlying data context to the command? This means that you can use the sender of the DataContext in the Executed handler or set CommandParameter={Binding} in xaml.

If you see that you cannot bind CommandParameter to one object - this may be due to poor design.

-2
source

All Articles