Customize undo/redo functionality

2 posts, 1 answers
  1. Kristoffer
    Kristoffer avatar
    158 posts
    Member since:
    Dec 2012

    Posted 30 Aug 2013 Link to this post

    The default implementation of the UndoRedoService is way too picky. Every possible UI transition adds an entry to the undo buffer. We don't want the user to be able to undo certain operations. E.g. when you click on a node, its ZIndex changes - implying a "Undo Set ZIndex" in the undo buffer. There are certainly more of these unnecessary undoables.

    How can we customize this undo/redo behavior?
  2. Answer
    Pavel R. Pavlov
    Admin
    Pavel R. Pavlov avatar
    1182 posts

    Posted 04 Sep 2013 Link to this post

    Hello Kristoffer,

    I am happy to inform you that the RadDiagram framework provides straightforward way of customizing this behavior.

    Basically, you need to define a custom class which implements the IUndoRedoService interface and use the ServiceLocator to register your class with the RadDiagram. You can find more information here.

    Please try to replace the default UndoRedoService with your custom one and let us know if you need any further assistance.

    Regards,
    Pavel R. Pavlov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top