Hi
I am using xam datagrid with multi level.In that i handle mouse double click event and in that i will expand or collapse all child.
here is my code..
private void XamDataGridExpander_MouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { if (e.ChangedButton == System.Windows.Input.MouseButton.Left) { XamDataGrid xdgGrid = e.Source as XamDataGrid; if (xdgGrid != null && xdgGrid.ActiveRecord != null) { if (xdgGrid.ActiveRecord.IsExpanded) { CommonLogic.ExpandRecord(xdgGrid.ActiveRecord, false); } else { xdgGrid.ActiveRecord.IsExpanded = true; } } } }
It is working fine.But when data is more then the visible area there we see scroll viewer. In that when we click double click on scrollviewer it calls to the xamgrid XamDataGridExpander_MouseDoubleClick event.
So please can you tell me how to identify that double click event is from scroll viewer or data record presenter.
Here i attached example.In that when i select any one row and then double click on scrollbar it execute as selected row double click.
Thanks
Adit Sheth
Hello Adit,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thanks stefan for you quick response.
I got my solution.
Adit
Thank you for your post. I have been looking into it and I can suggest you see this forum thread:
http://ko.infragistics.com/community/forums/p/7652/210117.aspx
where a similar question is already answered. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.