Click here to Skip to main content
15,847,963 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_31-May-11 14:32
professional_Maxxx_31-May-11 14:32 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Pete O'Hanlon31-May-11 22:37
subeditorPete O'Hanlon31-May-11 22:37 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_29-May-11 16:35
professional_Maxxx_29-May-11 16:35 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Pete O'Hanlon31-May-11 0:05
subeditorPete O'Hanlon31-May-11 0:05 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_31-May-11 14:16
professional_Maxxx_31-May-11 14:16 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Pete O'Hanlon31-May-11 22:37
subeditorPete O'Hanlon31-May-11 22:37 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Mycroft Holmes31-May-11 14:14
professionalMycroft Holmes31-May-11 14:14 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_31-May-11 14:27
professional_Maxxx_31-May-11 14:27 
Mycroft Holmes wrote:
1 CustomerVM that would service all 3 of your views.


that's fine - but what if you want to use the customer lookup view elsewhere - not for editing a customer but for selecting a customer for some other function (say during order entry) You don't want to use that VM with all its overhead do you? soyou would end up with aniother ViewModel supporting the Customer lookup View...

I appreciate you call it a bastardisation - but what you're really doing is treating the containing user control as a View, with a ViewModel, and the other two as user Controls (not views) so they don't have a view model any more than a text box or combo box would. And that's fine - I just find it very confusing if you call something a View that is really just a control - and if it's not just a control, i.e. if it is a View, then it should be modelled by a ViewModel -and a ViewModel's job is to model a view (otherwise they'd be called ViewsModels) Smile | :)
MVVM# - See how I did MVVM my way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011

.\\axxx
(That's an 'M')

GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Mycroft Holmes31-May-11 15:30
professionalMycroft Holmes31-May-11 15:30 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_31-May-11 16:59
professional_Maxxx_31-May-11 16:59 
QuestionHow to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Vimalsoft(Pty) Ltd26-May-11 1:18
professionalVimalsoft(Pty) Ltd26-May-11 1:18 
QuestionRe: How to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Mark Salsbery26-May-11 12:10
Mark Salsbery26-May-11 12:10 
AnswerRe: How to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Vimalsoft(Pty) Ltd26-May-11 12:13
professionalVimalsoft(Pty) Ltd26-May-11 12:13 
GeneralRe: How to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Mark Salsbery26-May-11 12:39
Mark Salsbery26-May-11 12:39 
GeneralRe: How to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Vimalsoft(Pty) Ltd26-May-11 20:04
professionalVimalsoft(Pty) Ltd26-May-11 20:04 
GeneralRe: How to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Mark Salsbery26-May-11 20:09
Mark Salsbery26-May-11 20:09 
QuestionHow to retrieve hyperlink url from selection text in wpf? Pin
John-ph26-May-11 0:06
John-ph26-May-11 0:06 
QuestionInstaller for WPF Control Pin
Prasoon Chaudhary25-May-11 22:22
Prasoon Chaudhary25-May-11 22:22 
AnswerRe: Installer for WPF Control Pin
Wayne Gaylard25-May-11 22:32
professionalWayne Gaylard25-May-11 22:32 
QuestionRe: Installer for WPF Control Pin
Prasoon Chaudhary25-May-11 23:09
Prasoon Chaudhary25-May-11 23:09 
AnswerRe: Installer for WPF Control Pin
Abhinav S26-May-11 8:55
Abhinav S26-May-11 8:55 
QuestionHow to Access a Cookie Created in Silverlight from an Asp.net page Pin
Vimalsoft(Pty) Ltd25-May-11 6:29
professionalVimalsoft(Pty) Ltd25-May-11 6:29 
AnswerRe: How to Access a Cookie Created in Silverlight from an Asp.net page Pin
Pete O'Hanlon25-May-11 7:25
subeditorPete O'Hanlon25-May-11 7:25 
GeneralRe: How to Access a Cookie Created in Silverlight from an Asp.net page Pin
Vimalsoft(Pty) Ltd25-May-11 8:18
professionalVimalsoft(Pty) Ltd25-May-11 8:18 
GeneralRe: How to Access a Cookie Created in Silverlight from an Asp.net page Pin
Pete O'Hanlon25-May-11 10:06
subeditorPete O'Hanlon25-May-11 10:06 

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.