Page view counter
Error Code: 2260 Message: AG_E_PARSER_BAD_PROPERTY_VALUE Subscribe to this thread
Last post 09-12-2008 4:57 AM by simbuaarumugam. 5 replies.
Sort Posts:
07-26-2007 9:59 AM
Error Code: 2260 Message: AG_E_PARSER_BAD_PROPERTY_VALUE

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?

<TextBlock x:Name="catchMLBD" MouseLeftButtonDown="OnMouseDown" OpacityMask="#FF392020" Cursor="Hand" Width="6.666" Height="10.667" Canvas.Left="474.67" Canvas.Top="85.34" FontFamily="Arial" FontSize="10" Foreground="#FF151414" Text="Click Me!" TextWrapping="Wrap"/>

BrianW_10

Loading...
Joined on 12-20-2006
Posts 7
07-26-2007 12:29 PM
Re: Error Code: 2260 Message: AG_E_PARSER_BAD_PROPERTY_VALUE

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?

swirlingmass

Loading...
Joined on 05-02-2007
Posts 385
07-26-2007 1:13 PM
Marked as Answer
Re: Error Code: 2260 Message: AG_E_PARSER_BAD_PROPERTY_VALUE

hello.

another option is not setting the correct event args type on the handler....

luisabreu

Loading...
Joined on 04-30-2007
Posts 612
07-27-2007 9:15 AM
Re: Re: Error Code: 2260 Message: AG_E_PARSER_BAD_PROPERTY_VALUE

Luis,

 Thanks for your help!  I was indeed not specifying the event args in my handler properly.

BrianW_10

Loading...
Joined on 12-20-2006
Posts 7
02-07-2008 12:51 PM
Re: Re: Re: Error Code: 2260 Message: AG_E_PARSER_BAD_PROPERTY_VALUE

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 -

function getcontrl_Loaded(sender, eventArgs)

{

var host = document.getElementById("SilverlightControl");

var media = host.content.findName("media");

media.play();

 

}

dreamtv

Loading...
Joined on 01-24-2008
Posts 28
09-12-2008 4:57 AM
Re: Error Code: 2260 Message: AG_E_PARSER_BAD_PROPERTY_VALUE

 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)

simbuaarumugam

Loading...
Joined on 07-22-2008
India-Chennai
Posts 405
Microsoft Communities