I'm using MVVM and WPF 4.5 Ribbon to activate views. Each activate command looks like this:
public void ActivateSearchDocuments()
{
DisplayName = "Seach Documents - App";
ActivateItem(IoC.Get<SearchViewModel>());
}
I know I can implement an Undo/Redo pattern using a circular queue. My doubt is: is it possible to store lazy references on that queue. I mean, how can I store that command on the queue in order to call it later.
I don't think delegates is the appropiate way. Is there something cleaner?