Skip to main content

Microsoft Silverlight

Silverlight 2.0 B2 UserControl generates Multiple Interrupts on MouseLeftButtonDown event for Single ClickRSS Feed

(0)

dbaechtel
dbaechtel

Member

Member

59 points

207 Posts

Silverlight 2.0 B2 UserControl generates Multiple Interrupts on MouseLeftButtonDown event for Single Click

I am writing a Silverlight 2.0 Beta 2 application in VB using VSTS 2008 SP1 on Windows XP SP3.

I have a UserControl that consists of a Grid Control some Border controls and a TextBlock.

I have a Handler set to receive MouseLeftButtonDown events on this UserControl.

For a single Mouse button click I am getting as many as 6 consecutive activations of the MouseLeftButtonDown event handler.

Why does Windows XP, the IE7 Browser and Silverlight 2.0 B2 trigger so many events for a single button click?

What is the best way to prevent multiple event triggers for this event?

What is the best way to design the control so that it will react to multiple button clicks, but only if they are seperated by a short span of time?

Do I have to write filters for all of my controls that use Click events so that they only execute once per click?

 

THANKS for any assistance.

Keith.Mahoney
Keith.Ma...

Participant

Participant

872 points

131 Posts

Microsoft

Re: Silverlight 2.0 B2 UserControl generates Multiple Interrupts on MouseLeftButtonDown event for Single Click

This is not normal behavior: The MouseLeftButtonDown event should fire only once per click. Could you include a sample of xaml/code that exhibits this behavior?

Keith Mahoney
Silverlight SDET
Microsoft
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities