This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello Janson, I need to disable Ctrl+Z operation. How can I do this ?
Cheers Christopher. |
|
|
Hello Chiristopher You can achieve this by remove the 'Undo' command binding from the DiagramSurface.CommandBindings collection. In both versions of WPF Diagrams, the undo command is at index 5, so a 'ds.CommandBindings.RemoveAt(5);' would do the trick. Or you could iterate through the collection to find the appropriate binding to remove. This could look something like this:
foreach (CommandBinding binding in ds.CommandBindings) - Jason |
|