c++ - UWP/WinRT: How to enable undo hooks on a TextBox? -
the textbox class supports undo, present , functional in context menu.
i implement undo/redo buttons found in every common document editor such microsoft word. disabled when have no action take, , when there undo/redo stack move through, pressing buttons cause textbox's contents undo , redo.
looking @ textbox api, there doesn't seem mention of how hook undo data. discussion mention undo present on context menu.
how undo/redo hooks implemented on textbox?
if makes difference, i'm coding in c++/cx.
you can record history manually textchanged event. undo command used display input. hook control seems not possible.
handle contextmenuopening event textbox , can modify popup own commands, example own undo/redo history.
a sample: https://code.msdn.microsoft.com/windowsapps/context-menu-sample-40840351 works fine uwp.
Comments
Post a Comment