Click here to Skip to main content
15,868,141 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_31-May-11 13:32
professional_Maxxx_31-May-11 13:32 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Pete O'Hanlon31-May-11 21:37
subeditorPete O'Hanlon31-May-11 21:37 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_29-May-11 15:35
professional_Maxxx_29-May-11 15:35 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Pete O'Hanlon30-May-11 23:05
subeditorPete O'Hanlon30-May-11 23:05 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_31-May-11 13:16
professional_Maxxx_31-May-11 13:16 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Pete O'Hanlon31-May-11 21:37
subeditorPete O'Hanlon31-May-11 21:37 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
Mycroft Holmes31-May-11 13:14
professionalMycroft Holmes31-May-11 13:14 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_31-May-11 13:27
professional_Maxxx_31-May-11 13: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 14:30
professionalMycroft Holmes31-May-11 14:30 
GeneralRe: How to pass a new instance of a viewmodel to an existing usercontrol? Pin
_Maxxx_31-May-11 15:59
professional_Maxxx_31-May-11 15:59 
QuestionHow to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Vimalsoft(Pty) Ltd26-May-11 0:18
professionalVimalsoft(Pty) Ltd26-May-11 0:18 
QuestionRe: How to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Mark Salsbery26-May-11 11:10
Mark Salsbery26-May-11 11:10 
AnswerRe: How to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Vimalsoft(Pty) Ltd26-May-11 11:13
professionalVimalsoft(Pty) Ltd26-May-11 11:13 
GeneralRe: How to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Mark Salsbery26-May-11 11:39
Mark Salsbery26-May-11 11:39 
GeneralRe: How to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Vimalsoft(Pty) Ltd26-May-11 19:04
professionalVimalsoft(Pty) Ltd26-May-11 19:04 
GeneralRe: How to Convert Byte Array to BitmapSource in C# for Silverlight Pin
Mark Salsbery26-May-11 19:09
Mark Salsbery26-May-11 19:09 
QuestionHow to retrieve hyperlink url from selection text in wpf? Pin
John-ph25-May-11 23:06
John-ph25-May-11 23:06 
QuestionInstaller for WPF Control Pin
Prasoon Chaudhary25-May-11 21:22
Prasoon Chaudhary25-May-11 21:22 
AnswerRe: Installer for WPF Control Pin
Wayne Gaylard25-May-11 21:32
professionalWayne Gaylard25-May-11 21:32 
QuestionRe: Installer for WPF Control Pin
Prasoon Chaudhary25-May-11 22:09
Prasoon Chaudhary25-May-11 22:09 
AnswerRe: Installer for WPF Control Pin
Abhinav S26-May-11 7:55
Abhinav S26-May-11 7:55 
QuestionHow to Access a Cookie Created in Silverlight from an Asp.net page Pin
Vimalsoft(Pty) Ltd25-May-11 5:29
professionalVimalsoft(Pty) Ltd25-May-11 5:29 
AnswerRe: How to Access a Cookie Created in Silverlight from an Asp.net page Pin
Pete O'Hanlon25-May-11 6:25
subeditorPete O'Hanlon25-May-11 6:25 
GeneralRe: How to Access a Cookie Created in Silverlight from an Asp.net page Pin
Vimalsoft(Pty) Ltd25-May-11 7:18
professionalVimalsoft(Pty) Ltd25-May-11 7:18 
GeneralRe: How to Access a Cookie Created in Silverlight from an Asp.net page Pin
Pete O'Hanlon25-May-11 9:06
subeditorPete O'Hanlon25-May-11 9: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.