Click here to Skip to main content
15,899,754 members
Home / Discussions / WPF
   

WPF

 
QuestionMVVM Messenger / Mediator question Pin
_Maxxx_9-Mar-11 15:29
professional_Maxxx_9-Mar-11 15:29 
AnswerRe: MVVM Messenger / Mediator question Pin
SledgeHammer019-Mar-11 17:21
SledgeHammer019-Mar-11 17:21 
AnswerRe: MVVM Messenger / Mediator question Pin
Pete O'Hanlon9-Mar-11 20:06
mvePete O'Hanlon9-Mar-11 20:06 
GeneralRe: MVVM Messenger / Mediator question Pin
_Maxxx_9-Mar-11 21:25
professional_Maxxx_9-Mar-11 21:25 
GeneralRe: MVVM Messenger / Mediator question Pin
Pete O'Hanlon9-Mar-11 21:33
mvePete O'Hanlon9-Mar-11 21:33 
GeneralRe: MVVM Messenger / Mediator question Pin
_Maxxx_9-Mar-11 22:57
professional_Maxxx_9-Mar-11 22:57 
GeneralRe: MVVM Messenger / Mediator question Pin
Pete O'Hanlon9-Mar-11 23:12
mvePete O'Hanlon9-Mar-11 23:12 
GeneralRe: MVVM Messenger / Mediator question Pin
_Maxxx_9-Mar-11 23:45
professional_Maxxx_9-Mar-11 23:45 
Well, you know what they say about Inspiration and Perspiration...

Incidentally, I am also passing a Message object around with my messages. This object (amongst other things) allows each Message handler to report whether it has handled the message (and gives it the option to stop the message being sent to any other handlers.

so my implementation rather than returning an effective boolean, returns

MessageHandled,
MessageNotRegistered,
MessageAborted,
MessageRegisteredNotHandled

So , for example, I can send out a message to perform some action, but all of the potential handlers may be too busy, so I get a MessageRegisteredNothandled return value.

This is very much a work In Progress, so I haven't worked out all the ins and outs, but it seems to solve some of the potential issues I was worrying about.
___________________________________________
.\\axxx
(That's an 'M')

GeneralRe: MVVM Messenger / Mediator question Pin
Pete O'Hanlon10-Mar-11 0:14
mvePete O'Hanlon10-Mar-11 0:14 
GeneralRe: MVVM Messenger / Mediator question Pin
_Maxxx_10-Mar-11 1:00
professional_Maxxx_10-Mar-11 1:00 
GeneralRe: MVVM Messenger / Mediator question Pin
Pete O'Hanlon10-Mar-11 1:43
mvePete O'Hanlon10-Mar-11 1:43 
GeneralRe: MVVM Messenger / Mediator question Pin
_Maxxx_10-Mar-11 2:22
professional_Maxxx_10-Mar-11 2:22 
GeneralRe: MVVM Messenger / Mediator question Pin
Pete O'Hanlon10-Mar-11 2:37
mvePete O'Hanlon10-Mar-11 2:37 
GeneralRe: MVVM Messenger / Mediator question Pin
Pete O'Hanlon9-Mar-11 22:38
mvePete O'Hanlon9-Mar-11 22:38 
GeneralRe: MVVM Messenger / Mediator question Pin
_Maxxx_9-Mar-11 22:58
professional_Maxxx_9-Mar-11 22:58 
QuestionMake silverlight app on page a "singleton" Pin
dbrenth9-Mar-11 10:50
dbrenth9-Mar-11 10:50 
AnswerRe: Make silverlight app on page a "singleton" Pin
Mycroft Holmes9-Mar-11 11:50
professionalMycroft Holmes9-Mar-11 11:50 
GeneralRe: Make silverlight app on page a "singleton" Pin
AspDotNetDev9-Mar-11 12:33
protectorAspDotNetDev9-Mar-11 12:33 
GeneralRe: Make silverlight app on page a "singleton" Pin
Mycroft Holmes9-Mar-11 13:01
professionalMycroft Holmes9-Mar-11 13:01 
AnswerRe: Make silverlight app on page a "singleton" Pin
Pete O'Hanlon9-Mar-11 11:54
mvePete O'Hanlon9-Mar-11 11:54 
GeneralRe: Make silverlight app on page a "singleton" Pin
AspDotNetDev9-Mar-11 12:36
protectorAspDotNetDev9-Mar-11 12:36 
AnswerRe: Make silverlight app on page a "singleton" Pin
AspDotNetDev9-Mar-11 12:32
protectorAspDotNetDev9-Mar-11 12:32 
GeneralRe: Make silverlight app on page a "singleton" Pin
dbrenth10-Mar-11 3:59
dbrenth10-Mar-11 3:59 
QuestionCalling windows service - Dequeue Pin
arkiboys9-Mar-11 5:05
arkiboys9-Mar-11 5:05 
AnswerRe: Calling windows service - Dequeue Pin
Pete O'Hanlon9-Mar-11 7:13
mvePete O'Hanlon9-Mar-11 7:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.