Click here to Skip to main content
16,006,826 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: A basic KIOSK application using WPF/ Silverlight Pin
Abhinav S10-Mar-11 21:24
Abhinav S10-Mar-11 21:24 
AnswerRe: A basic KIOSK application using WPF/ Silverlight Pin
Richard MacCutchan10-Mar-11 22:31
mveRichard MacCutchan10-Mar-11 22:31 
GeneralRe: A basic KIOSK application using WPF/ Silverlight Pin
Member 365700710-Mar-11 23:02
Member 365700710-Mar-11 23:02 
GeneralRe: A basic KIOSK application using WPF/ Silverlight Pin
Richard MacCutchan10-Mar-11 23:48
mveRichard MacCutchan10-Mar-11 23:48 
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 
Hi Pete

The issue is (and bear in mind this is not a real application as yet):

If my VM Customer Lookup sends a message out to say "HEy, the User just selected Customer 123" then something needs to handle the message.

I possibly have not yet instantiated a Customer Edit VM, so don't know if there's anyone out there listening for the message.

My idea was to send the message, then if nobody handles it, handle it myself by getting a CustomerEdit VM instantiated to edit this Customer.

So the only reason the listener is there in the lookup is to handle the instantiation of a VM to handle the event.

I could (of course) have the VM keep a list of all the CustomerEdit VMs it has had instantiated, and compare any new selection against that list, only instantiating a new one should I need to - but that would require my Look UP VM having references to all of the Edit VMs.
___________________________________________
.\\axxx
(That's an 'M')

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

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.