Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
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.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Command pattern

 
 
Old 02-14-2006   #1 (permalink)
Erno


 
 

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 SpecsSystem Spec
Old 02-27-2006   #2 (permalink)
Erno


 
 

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 SpecsSystem Spec
 

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


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46