Yevgeniy
Yevgeniy

Reputation: 1066

Additional parameter for attached property

I have an attached property. Can I pass an additional parameter in xaml via binding, and handle it in my attached property.

Thank you!

Upvotes: 1

Views: 1054

Answers (1)

brunnerh
brunnerh

Reputation: 184777

Attached properties do not handle things, they can have one value, if you need more than one value change its datatype to something more complex like a class or struct. Similarily a binding also only outputs one value, independent from what you pass in as parameter.

Upvotes: 3

Related Questions