We are using the igDP:Field to display the hyperlink with a custom style.
Is there any way to make use of both double click and single click events for the same cell?
We added our own dependency property command which will handle both. But the igDP:Field is inherited from DataPresenter.
How can we make use of our own dependency property command as attached behavior command in igDP:Field?
Is there any other way to handle these click events?
Hello,
Thank you for your post.
I have been looking into it, but it seems like I am missing something from your scenario, so if this is still an issue for you, could you please send me, an isolated sample project, where this is reproduced, so I can investigate it further for you. You can take a look at the following forum thread, where similar functionality was discussed:
http://www.infragistics.com/community/forums/p/2784/16536.aspx#16536
Looking forward to hearing from you.
Basically we are trying to achieve two things :1.Single clicking hyperlink cell, action = open url in browser2.Double clicking the same cell, action = Enter edit mode
we have attached a sample project showing what we are trying to achieve.We have created a behavior to dufferentiate between single click and double click.When we attach the behavior to button, it works as expected. You can verify this in the attached sample by single clicking and double clicking the button.
But we need to do this in a xamdatagrid cell.When we attach the same behavior to xamdatagrid cell, we are not able to achieve this.
Is there any solution for this ?
Hello Vijay,
I have been looking into the functionality you are looking for and the sample project that you have provided. What I can suggest is to try to re-template the default style for CellValuePresenter and add your attached behavior to its ContentPresenter. You can find the default style from the following location on your computer:
C:\Program Files (x86)\Infragistics\2015.2\WPF\DefaultStyles\DataPresenter in this folder you have to open the file named ‘DataPresenterGenericExpress.xaml’ and search for CellValuePresenter's style.
Please do not hesitate to let me know if you require any further assistance regarding this matter.
Hi,
We have tried with the suggestion provided by you, but its not working
So can edit the our sample project and share with us it would be help full for us.
Thank you for your feedback.
I have been looking further into the functionality you are looking for and what I can suggest in order to be able to achieve your goal is to re-template the default style for CellValuePresenter by adding Textbox control to it. You can attach your behavior to this Textbox. In order to achieve single click requirement you can set its IsReadOnly property to true and change this when DoubleClick command is executing. You can add this Textbox as CommandParameter for your DoubleClickCommand and access it in the element_MouseLeftButtonDown event from your MultiClickBehavior class. You can handle its LostFocus event and set the IsReadOnly property back to true in the event handler. I modified your sample project in order to show you how you can implement this approach and achieve your requirements.
Please let me know if you require any further assistance regarding this matter.