.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!



Home >> Forum >> WPF >> Post New QuestionBookmark and Share Subscribe to Forum

PreviewMouseDoubleClick event not firing in WPF.

Posted By: Lynn     Posted Date: May 03, 2011    Points:5   Category :WPF
Hi,

I use the MVVM design mode,and want to return data from sub-view,so I select the "EventTrigger",but the action is never fired when in a DataGrid,I use a "Button" to test,is OK,please help me.I am waiting for your replay,thanks very much!

The xaml code is given below.

<DataGrid x:Name="dgQAcheck" AutoGenerateColumns="False" ItemsSource="{Binding }" CanUserAddRows="False"
Background="#FFD0E2EF" Width="728" IsEnabled="True" AlternatingRowBackground="{x:Null}" AlternationCount="0"
AreRowDetailsFrozen="False" IsReadOnly="True" >
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<i:InvokeCommandAction Command="{Binding Path=DoubleClickCommand}" CommandParameter="{Binding SelectedItem,ElementName=dgQAcheck}"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</DataGrid>



Responses
Author: Narayanan             
Posted Date: October 11, 2011     Points: 20   

Hi,
refer these links.It may be useful.
http://compositewpf.codeplex.com/discussions/64514
http://compositewpf.codeplex.com/discussions/242032

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend