Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
Problem with mouse double click in XamDataGrid
posted

I am using xamDataGrid :

I wrote the some code to show a PopUp on Mouse Double Click of grid:

        private void lstContactAssociation_MouseDoubleClick(object sender, MouseButtonEventArgs e)

       {

            //Edit Contact Association on mouse Double click.

            CompanyViewModel context = this.DataContext as CompanyViewModel;

            context.EditContactAssociation();

        }

which Shows a PopUp Window for Editing contact.

My Problem is that anywhere i double click on grid it shows the PopUp Window whether I double click on Header of grid or Horizontal scrollBar of grid if record is selected it will show the edit  Window while user want it should show the PopUp only when Mouse cursor is on record.

Please anybody can help me in this context.

thanks in advance.