Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit Silverlight 2.0 B2 UserControl generates Multiple Interrupts on MouseLeftButtonDown event for Single Click
1 replies. Latest Post by Keith.Mahoney on August 14, 2008.
(0)
dbaechtel
Member
59 points
207 Posts
08-13-2008 4:29 PM |
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.Ma...
Participant
872 points
131 Posts
08-14-2008 2:29 PM |
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?