Did some more research on this after I asked the above question. ApplicationCommand does not provide record navigation enumerations.
Does the CSLA data provider provide access to the underlying list, so that it could be provided to the CollectionViewSource in code-behind? That would pretty much do the trick, as I could declare all the bindings in XAML, but instantiate the CollectionViewSource in code accessing the name of the csla data provider.
Or is there a totally different way to attack data navigation?
One other note.
You can find the Navigation Commands under the NavigationCommands class, not ApplicationCommands
Other classes with useful commands are EditingCommands, ComponentCommands, MediaCommands
Have you had luck with the WPF navigation infrastructure?
I have found it to be nothing but trouble, but I suspect I'm missing something, because it can't be as useless as it seems to be...
My specific problems are around state management. The navigation infrastructure seems to run each page in its own AppDomain, causing loss of state between pages. And using the Back button navigates back to pages where the underlying business object has been lost. And it seems impossible to navigate directly to a specific page instance (that might or might not be in history), so you can easily end up with numerous instances of "the same page", which is very confusing to a user.
I abandoned use of this technology a long time ago due to these (seemingly insurmountable) issues. I know numerous other people (including Billy Hollis) who've written their own navigation component to overcome these issues and get control over transitions and other aspects.
In CSLA .NET for Silverlight we created a Navigator component. I kind of suspect I'll back-port that concept into CSLA .NET for Windows at some point, because it is a light-weight way to handle many of these issues as well (though it would be slightly different in WPF of course).
Rocky,
Take a look at this:
http://dotnet.org.za/rudi/archive/2008/03/27/keeping-track-of-open-windows-in-wpf.aspx
Another interesting take on it is actually in WinForms, but could be applied to WPF:
http://www.codeproject.com/KB/miscctrl/WinFormsHistory.aspx
and finally another idea in Silverlight:
http://nerddawg.blogspot.com/2008_06_01_archive.html
Copyright (c) Marimer LLC