There is a exception when I call following code:
xamDataGrid.ExecuteCommand(ApplicationCommands.Cut);
the exception say:
Unable to perform the operation. Additional Information:
OpenClipboard Failed(Exception from HRESULT:0x800401D0(CLIPBRD_E_CANT_OPEN))
Anyone know how to avoid it?
This looks like the same issue reported here. What are the build and the version that you are using and when do you execute this command?
I've read it. But I find my problem only happens when I am in debug mode. If I do not set breakpoint before openclipboard, it will be ok.