4

how to Pass multiple parameters via Command Parameter in WPF?? Do we have to create an object and pass if so can someone help me with an example

2 Answers 2

4

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

Sign up to request clarification or add additional context in comments.

Comments

-2

I'm guessing it would be sufficient to pass the underlying data context to the command? This means you can use sender's DataContext in the command's Executed handler, or set CommandParameter={Binding} in xaml.

If you see that you can't bind CommandParameter to a single object - this might be because of a bad design.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.