I want to catch the MouseLeftButtonDown event when my Text Block is Left Clicked. When I add the MouseLeftButtonDown="OnMouseDown" code to my XAML code below I get the above error message. Any ideas how to do this?
<
I think you get that error message when you haven't defined the event handler in code behind, but have assigned it in xaml.
So my question to you is, have you defined an OnMouseDown function?
hello.
another option is not setting the correct event args type on the handler....
Luis,
Thanks for your help! I was indeed not specifying the event args in my handler properly.
What do you mean by not handling the eventargs type in the handler function.
I have this piece of code - in the handler function for a MediaOpened event -
{
var
media.play();
}
can u post your code behind event for onmousedown its easy to find solution
SimbuAarumugam India http://simbusoftwareengineer.blogspot.com(Mark As Answer If its Satisfy your needs)