Ver código fonte

Caused action columns to only get called on left mous button pressed.

Kenric Nugteren 1 ano atrás
pai
commit
66590d99ff
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      inabox.wpf/DynamicGrid/DynamicGrid.cs

+ 2 - 1
inabox.wpf/DynamicGrid/DynamicGrid.cs

@@ -1398,11 +1398,12 @@ namespace InABox.DynamicGrid
         {
         {
             if (!IsEnabled)
             if (!IsEnabled)
                 return;
                 return;
-            
+
             var dac = ColumnList[e.RowColumnIndex.ColumnIndex] as DynamicActionColumn;
             var dac = ColumnList[e.RowColumnIndex.ColumnIndex] as DynamicActionColumn;
             if (dac != null)
             if (dac != null)
             {
             {
                 var bRefresh = false;
                 var bRefresh = false;
+                if(e.ChangedButton == MouseButton.Left)
                 {
                 {
                     foreach (var row in SelectedRows)
                     foreach (var row in SelectedRows)
                         if (dac.Action?.Invoke(row) == true)
                         if (dac.Action?.Invoke(row) == true)