Actually another way of doing it which is equally testable is to use EventAggregator. You could fire an event for ShowMessage() coming from the ViewModel which is handled by the view, or the controller. You could also then either synchronously return the Yes/No/Cancel state by making it a property on the parameters that you pass to the EA event, or you could asynchronously raise a separate event to indicate selection which the VM subscribes to.
Glenn
On Sat, Feb 7, 2009 at 11:33 AM, Staxxx <staxxx@...> wrote:
Thanks Glen, just wanted to make sure I wasn't missing something better... :)
On Sat, Feb 7, 2009 at 11:09 AM, glenn_block <glenn.block@...> wrote:
Hi Jason--- In altdotnet@yahoogroups.com, Staxxx <staxxx@...> wrote:
>
> Hello all,
> I posted this discussion at
> http://www.codeplex.com/CompositeWPF/Thread/View.aspx?ThreadId=46353
without
> any response in a couple days I thought I would see what everyone
here has
> any thoughts about this.
> Any input would be appreciated.
>
> Thanks,
> Jason Jarrett
>
I replied on the thread.