Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Error Code: 2260 Message: AG_E_PARSER_BAD_PROPERTY_VALUE
5 replies. Latest Post by simbuaarumugam on September 12, 2008.
(1)
BrianW_10
Member
8 points
7 Posts
07-26-2007 9:59 AM |
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?
<
swirling...
Participant
1348 points
385 Posts
07-26-2007 12:29 PM |
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?
luisabreu
1676 points
612 Posts
07-26-2007 1:13 PM |
hello.
another option is not setting the correct event args type on the handler....
07-27-2007 9:15 AM |
Luis,
Thanks for your help! I was indeed not specifying the event args in my handler properly.
dreamtv
50 points
28 Posts
02-07-2008 12:51 PM |
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();
}
simbuaar...
1172 points
405 Posts
09-12-2008 4:57 AM |
can u post your code behind event for onmousedown its easy to find solution