HandyControls icon indicating copy to clipboard operation
HandyControls copied to clipboard

`DataGrid.InputBindings` with `MouseBinding` throw exception

Open GF-Huang opened this issue 1 year ago • 3 comments

Describe the bug

At 3.4.5 it works no exception, 3.5.0 throw exception: ArgumentException: "MouseAction" property was registered by "MouseBinding".

Steps to reproduce the bug

Just use this code to reproduce:

<DataGrid>
  <DataGrid.InputBindings>
    <MouseBinding MouseAction="LeftDoubleClick" 
                  Command="{x:Static SystemCommands.CloseWindowCommand}" />
  </DataGrid.InputBindings>
</DataGrid>

Expected behavior

No response

Screenshots

No response

NuGet package version

HandyControls (Custom version) 3.5.0

IDE

Visual Studio 2022

Framework type

.Net 8.0

Windows version

Windows 11 (22621)

Additional context

No response

GF-Huang avatar Nov 30 '23 22:11 GF-Huang

came here for this, same is happening in only v3.5.0

DineshSolanki avatar Dec 06 '23 17:12 DineshSolanki

Guys, I don't have enough time to work with WPF, I didn't add anything new, just synced with the main repo. So can you check commits and send a pr?

ghost1372 avatar Dec 06 '23 17:12 ghost1372

tried the code after reverting 8e1e8263f7918a142dc61f731fb9399f6927ed3e, seems to resolve this issue

DineshSolanki avatar Dec 08 '23 19:12 DineshSolanki

it seems that fixed https://github.com/HandyOrg/HandyControl/issues/1526

ghost1372 avatar Mar 07 '24 06:03 ghost1372