tag:blogger.com,1999:blog-6822536077160579260.post4226999252569028113..comments2023-06-05T14:25:52.227+01:00Comments on Sound Code: Detecting Mouse Hover Over ListBox Items in WPFAnonymoushttp://www.blogger.com/profile/17900587357903273800noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6822536077160579260.post-31218592312270982882014-03-21T10:12:09.383+00:002014-03-21T10:12:09.383+00:00Once again because in first comment code disappear...Once again because in first comment code disappear. I have to cut"<" <br /><br />Hi,<br />I think that You can also use triggers changing EventName.<br /><br />In Silverlight I use in ListBox.ItemTemplate.DataTemplate:<br /><br />i:Interaction.Triggers><br />i:EventTrigger EventName="MouseLeftButtonDown"> i:InvokeCommandAction Command="{Binding ElementName=Page,Path=DataContext.GoToDetails}" CommandParameter="{Binding}"/><br /><br />/i:EventTrigger><br />/i:Interaction.Triggers><br /><br /><br />where <br />xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"<br /><br />I think that caliburn micro is also usful in doing this in easy way.<br /><br />Regards,<br />MWAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6822536077160579260.post-72706677018844220052014-03-21T10:04:50.254+00:002014-03-21T10:04:50.254+00:00Hi,
I think that You can also use triggers changin...Hi,<br />I think that You can also use triggers changing EventName.<br /><br />In Silverlight I use in ListBox.ItemTemplate.DataTemplate:<br /><br /> <br /> <br /> <br /> <br /> <br /><br />where <br />xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"<br /><br />I think that caliburn micro is also usful in doing this in easy way.<br /><br />Regards,<br />MWAnonymousnoreply@blogger.com