Hello,
when the user double clicks an item in the ExplorerControl a rename is initiated (see attached screenshot). This is usually expected to happen on a slow double click. On a normal double click users expect the file to be opened. The right click context menu also indicates this behavior as the open action is shown bold (and rename is not). So this is a little bit inconsistent and looks like a bug.
For the WinForms Version I found a workaround here: https://www.telerik.com/forums/few-question-on-explorercontrol#5122863
But the WPF Explorer Control is missing a ItemMouseDoubleClick event, so what is the best way to get the expected behavior?
Best regards, Philipp
I've tested this in the latest WPF Demo app, but I wasn't able to reproduce the issue. This said, can you attach a sample project along with a video showing the exact issue?
Hey Philipp. The feature request was only to introduce a method for customizing or canceling the renaming process. The behavior described in your original post won't change automatically. To get the desired effect, you can use the PreviewMouseDoubleClick and the new Renaming events. For example:
private bool isDoubleClick = false; private void ExplorerControl_PreviewMouseDoubleClick(object sender, System.Windows.Input.MouseButtonEventArgs e) { isDoubleClick = true; } private void ExplorerControl_Renaming(object sender, Telerik.Windows.Controls.FileDialogs.RenamingEventArgs e) { if (e.FileInfo is FileInfoWrapper && this.isDoubleClick) { e.Cancel = true; } isDoubleClick = false; }
Hi Martin, thank you very much for your helpful comment. This solves the issue for my use case (with some additional code for handling the double click).
Additionally I suggest considering to make this default behavior as the ExplorerControl should (in my opinion) behave like the Windows Explorer and to avoid the described inconsistence with the context menu.