How to add multiple handlers to an attached event in XAML ?

Posted by Gishu on Stack Overflow See other posts from Stack Overflow or by Gishu
Published on 2010-05-21T06:19:57Z Indexed on 2010/05/21 6:30 UTC
Read the original article Hit count: 256

Filed under:

I want to add 2 handlers to a particular event like shown above. However this won't compile - 'attribute can be set more than once'. I have multiple methods because they do different things (are named appropriately). e.g. the first handler has nothing in common with the second.

My other option was to kludge a SetFlagForCursorTrackingAndCheckForViewLink method - which is "Yech!". Any ideas ?

© Stack Overflow or respective owner

Related posts about wpf