Hello,
I am thinking about an app with following features:
Can this scenario be built with XamDatacards? Are there best practices regarding touch with Infragistics?
Thanks
Niko
Hello Niko,
I have been investigating into this functionality that you are looking to achieve, and I am unsure if the XamDataCards control would really be the best Infragistics control for you in this case, although I may be misunderstanding the exact functionality you are looking for. My impression of what you are looking for is along the lines of a diagram where you can see the relationships between the "Project" and "Employee" objects. If this impression is incorrect, would it then be possible for you to please provide a little more information on the exact UI that you are looking for in this case?
If the above impression is correct, then I would very likely recommend against the XamDataCards and recommend something like the XamDiagram or perhaps the XamTileManager. The main reason for this is because the XamDataCards does not currently support hierarchical data, and so I'm not entirely sure how you would plan to show the relationship between the Projects and Employees unless you perhaps used multiple instances of the control. The XamDiagram and XamTileManager also have drag-and-drop functionality built-in, although you would very likely have to manage the actual "relationships" using application code and modifications of your underlying data item.
For reference, I am linking our online documentation for the XamDiagram and XamTileManager below:
XamDiagram: https://es.infragistics.com/help/wpf/xamdiagram
XamTileManager: https://es.infragistics.com/help/wpf/xamtilemanager
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewSoftware Developer
Hello Andrew,
thanks for the quick response.
I have attached a sketch for the functionality:
At the moment I think that XamDiagram is the best fit.
It would be great if you could advice on the drag&drop part as also on the experience with touch device. Drag&drop need to work with touch only as well.
From the sketch that you have provided, I would agree that the XamDiagram would be the best fit in this case, although the connections would need to be modified and determined using application code on your end.
I would like you to take a look at the demo that I am attaching, which works both with mouse and keyboard and touch functionality. The attached project uses the NodeMoved event of the XamDiagram to detect when a node has been dragged and dropped over a "project" node and creates tree-like connections between that project node and the employee nodes attached to it. I believe this will help you to achieve your requirement in this case.
XamDiagramProjectEmployeesDemo.zip
thanks for the sample app. I am currently in the process to get a touch enabled device and try how the usablity is on such a device.