![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
| |
| | #1 (permalink) |
| | Command pattern Hi all! For the app I am building (http://blogs.infosupport.com/ernow/articles/3603.aspx) I am currently pondering the editing of the 3D model part. One of the features I want to add is an Undo/Redo option for the user. I read some articles on implementing such a feature by extending the Command pattern. Now, WPF has an implementation of this pattern (System.Windows.Input) and I'm using it already. So here's my question: how do I add the Undo/Redo in an orderly way? One of the things I have considered is extending the CommandManager but: 1. how do I get my window to use it 2. it is sealed... Any suggestions? -- Erno ---- WPF tutorials: http://blogs.infosupport.com/ernow/articles/1878.aspx |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Command pattern I think I found a solution. You can download it from my blog: http://blogs.infosupport.com/ernow/a...2/27/3961.aspx Let me know what you think. Regards, -- Erno ---- WPF tutorials: http://blogs.infosupport.com/ernow/articles/1878.aspx "Erno" <nospam> wrote in message news:erX0OKZMGHA.2696@TK2MSFTNGP14.phx.gbl... > Hi all! > > For the app I am building > (http://blogs.infosupport.com/ernow/articles/3603.aspx) I am currently > pondering the editing of the 3D model part. > One of the features I want to add is an Undo/Redo option for the user. > > I read some articles on implementing such a feature by extending the > Command pattern. > > Now, WPF has an implementation of this pattern (System.Windows.Input) and > I'm using it already. > > So here's my question: how do I add the Undo/Redo in an orderly way? > > One of the things I have considered is extending the CommandManager but: > 1. how do I get my window to use it > 2. it is sealed... > > Any suggestions? > > -- > Erno > ---- > WPF tutorials: http://blogs.infosupport.com/ernow/articles/1878.aspx > > > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| search all files for a pattern | VB Script | |||
| String pattern | PowerShell | |||
| Implementing the Factory pattern | .NET General | |||
| Excel Chart Pattern | Vista General | |||
| unwanted background pattern | Vista General | |||