Click here to Skip to main content
15,891,529 members
Home / Discussions / WPF
   

WPF

 
QuestionSlilverlight with WCF Pin
sudheesh kumar s14-Jan-12 0:36
sudheesh kumar s14-Jan-12 0:36 
AnswerRe: Slilverlight with WCF Pin
Pete O'Hanlon14-Jan-12 0:51
mvePete O'Hanlon14-Jan-12 0:51 
GeneralRe: Slilverlight with WCF Pin
sudheesh kumar s14-Jan-12 1:06
sudheesh kumar s14-Jan-12 1:06 
GeneralRe: Slilverlight with WCF Pin
Pete O'Hanlon14-Jan-12 2:18
mvePete O'Hanlon14-Jan-12 2:18 
QuestionSilverlight 5 DataGrid MouseLeftButtonDown Fails Pin
Mycroft Holmes13-Jan-12 21:06
professionalMycroft Holmes13-Jan-12 21:06 
QuestionUserControl as a TabItem Pin
Tom Delany12-Jan-12 5:15
Tom Delany12-Jan-12 5:15 
GeneralRe: UserControl as a TabItem Pin
Tom Delany12-Jan-12 9:14
Tom Delany12-Jan-12 9:14 
QuestionIs IEnumerable<> a sufficent type for WPF binding? Pin
Harry von Borstel12-Jan-12 3:16
Harry von Borstel12-Jan-12 3:16 
Hi,

using MVVM I'm looking for a general guideline that tells me what type I should use for properties in the viewmodel that are exposing lists.

I think, in general it is a good idea to keep the type as basic as possible (e.g. not ObjectSet<T> but IQueryable<T> or IEnumerable<T>) in order to hide implementation from the interface. Thus, I started using IEnumerable<T>. Unfortunately it turned out, that the WPF designer (VS 2010) doesn't like this very much. The editor popup of the Properties view doesn't show me the members of my record type T. It seems that the designer needs at least IQueryable<T>, ICollection<T> or T[].

Does anyone know a reason for this? I found no issues in using IEnumerable<T> at runtime, only at design time.

Thanks,

Harry
AnswerRe: Is IEnumerable a sufficent type for WPF binding? Pin
Pete O'Hanlon12-Jan-12 3:24
mvePete O'Hanlon12-Jan-12 3:24 
GeneralRe: Is IEnumerable a sufficent type for WPF binding? Pin
Harry von Borstel12-Jan-12 3:59
Harry von Borstel12-Jan-12 3:59 
GeneralRe: Is IEnumerable a sufficent type for WPF binding? Pin
Pete O'Hanlon12-Jan-12 4:32
mvePete O'Hanlon12-Jan-12 4:32 
AnswerRe: Is IEnumerable a sufficent type for WPF binding? Pin
Abhinav S12-Jan-12 4:02
Abhinav S12-Jan-12 4:02 
GeneralRe: Is IEnumerable a sufficent type for WPF binding? Pin
Pete O'Hanlon12-Jan-12 4:18
mvePete O'Hanlon12-Jan-12 4:18 
GeneralRe: Is IEnumerable a sufficent type for WPF binding? Pin
Abhinav S12-Jan-12 17:55
Abhinav S12-Jan-12 17:55 
GeneralRe: Is IEnumerable a sufficent type for WPF binding? Pin
Harry von Borstel12-Jan-12 6:18
Harry von Borstel12-Jan-12 6:18 
GeneralRe: Is IEnumerable a sufficent type for WPF binding? Pin
Harry von Borstel12-Jan-12 9:28
Harry von Borstel12-Jan-12 9:28 
GeneralRe: Is IEnumerable a sufficent type for WPF binding? Pin
Abhinav S12-Jan-12 18:00
Abhinav S12-Jan-12 18:00 
GeneralRe: Is IEnumerable a sufficent type for WPF binding? Pin
Dean Oliver23-Jan-12 19:08
Dean Oliver23-Jan-12 19:08 
QuestionTooltip on DataGridTemplateColumn header [solved] Pin
Ravi Bhavnani11-Jan-12 6:01
professionalRavi Bhavnani11-Jan-12 6:01 
AnswerRe: Tooltip on DataGridTemplateColumn header Pin
Ravi Bhavnani11-Jan-12 6:10
professionalRavi Bhavnani11-Jan-12 6:10 
QuestionRIA Service not generating custom property Pin
Icarus12310-Jan-12 18:24
Icarus12310-Jan-12 18:24 
QuestionWPF Model From Hyperlink Pin
Kevin Marois10-Jan-12 10:50
professionalKevin Marois10-Jan-12 10:50 
GeneralRe: WPF Model From Hyperlink Pin
SledgeHammer0110-Jan-12 17:53
SledgeHammer0110-Jan-12 17:53 
GeneralRe: WPF Model From Hyperlink Pin
SledgeHammer0111-Jan-12 6:30
SledgeHammer0111-Jan-12 6:30 
AnswerRe: WPF Model From Hyperlink Pin
SledgeHammer0111-Jan-12 6:34
SledgeHammer0111-Jan-12 6:34 

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.