Click here to Skip to main content
15,913,709 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Popup from DataGrid cell - how to anchor to cell's upper left corner? Pin
#realJSOP22-Nov-10 5:24
professional#realJSOP22-Nov-10 5:24 
GeneralRe: Popup from DataGrid cell - how to anchor to cell's upper left corner? Pin
devvvy22-Nov-10 21:54
devvvy22-Nov-10 21:54 
Questionwhich one to select in these following option Pin
vinu.111121-Nov-10 20:20
vinu.111121-Nov-10 20:20 
AnswerRe: which one to select in these following option Pin
Mycroft Holmes21-Nov-10 20:55
professionalMycroft Holmes21-Nov-10 20:55 
AnswerRe: which one to select in these following option Pin
Abhinav S21-Nov-10 20:56
Abhinav S21-Nov-10 20:56 
QuestionQuest: Werid selection bug for duplicate item in WPF listview Pin
zeuscoder2012@gmail.com21-Nov-10 7:29
zeuscoder2012@gmail.com21-Nov-10 7:29 
QuestionChildren in reverse order, add to the Grid Pin
rus20420-Nov-10 17:19
rus20420-Nov-10 17:19 
AnswerRe: Children in reverse order, add to the Grid Pin
Mycroft Holmes20-Nov-10 21:21
professionalMycroft Holmes20-Nov-10 21:21 
GeneralRe: Children in reverse order, add to the Grid Pin
rus20420-Nov-10 23:00
rus20420-Nov-10 23:00 
GeneralRe: Children in reverse order, add to the Grid Pin
Mycroft Holmes20-Nov-10 23:47
professionalMycroft Holmes20-Nov-10 23:47 
GeneralRe: Children in reverse order, add to the Grid Pin
rus20421-Nov-10 3:19
rus20421-Nov-10 3:19 
GeneralRe: Children in reverse order, add to the Grid Pin
Pete O'Hanlon21-Nov-10 4:44
mvePete O'Hanlon21-Nov-10 4:44 
AnswerRe: Children in reverse order, add to the Grid Pin
Abhinav S20-Nov-10 23:42
Abhinav S20-Nov-10 23:42 
GeneralRe: Children in reverse order, add to the Grid Pin
rus20421-Nov-10 3:36
rus20421-Nov-10 3:36 
AnswerRe: Children in reverse order, add to the Grid Pin
Abhinav S21-Nov-10 5:57
Abhinav S21-Nov-10 5:57 
QuestionVB.Net/Silverlight Namespace(?) Issue [UPDATED] Pin
#realJSOP19-Nov-10 4:05
professional#realJSOP19-Nov-10 4:05 
AnswerRe: VB.Net/Silverlight Namespace(?) Issue Pin
Abhinav S20-Nov-10 2:09
Abhinav S20-Nov-10 2:09 
GeneralRe: VB.Net/Silverlight Namespace(?) Issue Pin
#realJSOP20-Nov-10 4:12
professional#realJSOP20-Nov-10 4:12 
AnswerRe: VB.Net/Silverlight Namespace(?) Issue Pin
_Maxxx_21-Nov-10 15:04
professional_Maxxx_21-Nov-10 15:04 
GeneralRe: VB.Net/Silverlight Namespace(?) Issue Pin
#realJSOP21-Nov-10 23:31
professional#realJSOP21-Nov-10 23:31 
QuestionMVVM type Question Pin
_Maxxx_18-Nov-10 19:52
professional_Maxxx_18-Nov-10 19:52 
Actually not specifically MVVM or even specifically WPF - but this is what I need help on...

I have a CustomerDetailsView and I have a CustomerDetailsViewModel
This view shows (obviously) a single customer's details.

I also want a list of customers that the user can search.

So - my initial thought was to have a collection of CustomerDetailsViewModels which I bind to something in a CustomerListView. so I have a CustomerListviewModel with a property of ObservableCollection<customerlistviewmodel>

but that strikes me as being wrong.

I really only want to show the customer first and surname in the list (let's say) - not the whole address, order values etc.

So my next thought was not to use a ViewModel collection at all, but just a collection of - What? customer models? Customer list models?

The ViewModel that 'displays' the list needs to be ignorant of the actual view - it just demands that there is a list of customers from which the user can select one, which will send a command back to the View model.

But because it doesn't know how this list is to be displayed, should it provide a collection of some ViewModel or other, each element injected into a view so I have a collection of views and associated view models that can then be shown in some sort of list?

Or do I provide a collection of data to which the grid (or whatever) binds?

I guess what the question boils down to is:

Is each element in a 'grid' displayed to the user a View with an associated ViewModel?
___________________________________________
.\\axxx
(That's an 'M')

AnswerRe: MVVM type Question Pin
Mycroft Holmes18-Nov-10 20:43
professionalMycroft Holmes18-Nov-10 20:43 
GeneralRe: MVVM type Question Pin
_Maxxx_18-Nov-10 22:48
professional_Maxxx_18-Nov-10 22:48 
GeneralRe: MVVM type Question Pin
Mycroft Holmes19-Nov-10 0:29
professionalMycroft Holmes19-Nov-10 0:29 
AnswerRe: MVVM type Question Pin
Pete O'Hanlon19-Nov-10 1:42
mvePete O'Hanlon19-Nov-10 1:42 

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.