tag:blogger.com,1999:blog-419582319739081915.post482773274917731474..comments2022-11-11T05:00:33.677-08:00Comments on 80-20 Rule: Silverlight double click eventUnknownnoreply@blogger.comBlogger5125tag:blogger.com,1999:blog-419582319739081915.post-56245751024816903012013-04-19T18:46:44.904-07:002013-04-19T18:46:44.904-07:00heey ,hope my msg find way to u
i need to tell u...heey ,hope my msg find way to u <br /> i need to tell u something ...arch33https://www.blogger.com/profile/07353621246723434227noreply@blogger.comtag:blogger.com,1999:blog-419582319739081915.post-31252502030498680752012-07-20T06:56:35.202-07:002012-07-20T06:56:35.202-07:00I found your answer and thought it would be what I...I found your answer and thought it would be what I'd use since it is the newer of answers I've seen. However, it looks like SL5 has given us a solution to this lingering problem. Here you go:<br /><br />private void myItem_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)<br />{<br /> if(e.ClickCount == 2) <br /> { <br /> //get excited you can now do stuff<br /> }<br />}<br /><br />Just thought it might help other searchers that hit your article.Bradhttps://www.blogger.com/profile/03498005363289254503noreply@blogger.comtag:blogger.com,1999:blog-419582319739081915.post-36870078940402690402011-08-26T03:40:16.589-07:002011-08-26T03:40:16.589-07:00Couple of questions: First, why is there no double...Couple of questions: First, why is there no double click event in the framework as it stands...in adding this functionality are we breaking a Microsoft design rule? Second, the user sets mouse double click speed in Windows - should we not somehow use this OS speed variable rather than setting some arbitrary double click speed?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-419582319739081915.post-40598749702117651812011-03-14T08:52:42.521-07:002011-03-14T08:52:42.521-07:00very good, but this won't perfectly work with ...very good, but this won't perfectly work with datagrid or listbox...<br /><br />If u don't check to the last selected row, u can activate the DoubleClickEvent with two differents rowAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-419582319739081915.post-5814347054012318082011-02-21T18:48:58.341-08:002011-02-21T18:48:58.341-08:00Creating a timer is expensive and unnecessary. Jus...Creating a timer is expensive and unnecessary. Just record the DateTime.Now and compare to the next click's DateTime.Now. This avoids the timer and extra thread required to run it.<br /><br />Also, that SharpGIS post is obsolete now. SL4 supports mousewheel and right-click. No need for hacky javascript cludges! Stay up to date man.Anonymousnoreply@blogger.com