Skip to main content

Microsoft Silverlight

Answered Question Error Code: 2260 Message: AG_E_PARSER_BAD_PROPERTY_VALUERSS Feed

(1)

BrianW_10
BrianW_10

Member

Member

8 points

7 Posts

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"/>

swirlingmass
swirling...

Participant

Participant

1348 points

385 Posts

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?

luisabreu
luisabreu

Participant

Participant

1676 points

612 Posts

Answered Question

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....

BrianW_10
BrianW_10

Member

Member

8 points

7 Posts

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.

dreamtv
dreamtv

Member

Member

50 points

28 Posts

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();

 

}

simbuaarumugam
simbuaar...

Participant

Participant

1172 points

405 Posts

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)
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities