In RadDiagram i am able to disable copy ,cut and paste using AllowCopy="False" AllowCut="False" AllowPaste="False" .
How do i disable undo(Ctrl+Z) & redo( Ctrl+Y) functionality ?
Thanks
Deepak Deshmukh
1 Answer, 1 is accepted
0
Dinko | Tech Support Engineer
Telerik team
answered on 21 Aug 2017, 01:13 PM
Hello,
In order to disable the undo/redo functionality when the Ctrl+Z/Y is pressed you can override the input bindings for those commands. Here is an example:
public MainWindow()
{
InitializeComponent();
CommandManager.RegisterClassInputBinding(typeof(RadDiagram), new InputBinding(ApplicationCommands.NotACommand, new KeyGesture(Key.Z, ModifierKeys.Control)));
CommandManager.RegisterClassInputBinding(typeof(RadDiagram), new InputBinding(ApplicationCommands.NotACommand, new KeyGesture(Key.Y, ModifierKeys.Control)));
}
Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which you to write beautiful native mobile apps using a single shared C# codebase.