Click here to Skip to main content
15,906,574 members
Home / Discussions / WPF
   

WPF

 
QuestionBinding one DP to another across controls Pin
MBursill4-Mar-09 11:14
MBursill4-Mar-09 11:14 
AnswerRe: Binding one DP to another across controls Pin
ABitSmart4-Mar-09 16:48
ABitSmart4-Mar-09 16:48 
GeneralRe: Binding one DP to another across controls Pin
MBursill4-Mar-09 18:32
MBursill4-Mar-09 18:32 
GeneralRe: Binding one DP to another across controls Pin
ABitSmart4-Mar-09 18:33
ABitSmart4-Mar-09 18:33 
QuestionListBox DataItemTemplate And Multiple Object Types Pin
BlitzPackage4-Mar-09 6:07
BlitzPackage4-Mar-09 6:07 
AnswerRe: ListBox DataItemTemplate And Multiple Object Types Pin
Mark Salsbery4-Mar-09 7:37
Mark Salsbery4-Mar-09 7:37 
GeneralRe: ListBox DataItemTemplate And Multiple Object Types Pin
BlitzPackage4-Mar-09 7:51
BlitzPackage4-Mar-09 7:51 
GeneralRe: ListBox DataItemTemplate And Multiple Object Types Pin
Mark Salsbery4-Mar-09 8:15
Mark Salsbery4-Mar-09 8:15 
BlitzPackage wrote:
So, you are saying that if I just use an obeservablecollection of type "object" that it will automatically convert it to the type that the specific datatemplate needs?


Yes.

I use (observable) collections of my base type instead of type "object" - less/no casting
when using the collection in code.

For each item in the collection, the available data templates (up the tree) are searched in order for a
data template with a matching DataType, so if you also have a data template for your base class,
you'll want that one last, otherwise it will be found first and applied to all derived types.
IOW, put your DataTemplate resources in order by DataType, from most derived to base. Smile | :)

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: ListBox DataItemTemplate And Multiple Object Types Pin
BlitzPackage4-Mar-09 8:29
BlitzPackage4-Mar-09 8:29 
GeneralRe: ListBox DataItemTemplate And Multiple Object Types Pin
Mark Salsbery4-Mar-09 8:32
Mark Salsbery4-Mar-09 8:32 
GeneralRe: ListBox DataItemTemplate And Multiple Object Types Pin
Mark Salsbery4-Mar-09 8:29
Mark Salsbery4-Mar-09 8:29 
GeneralRe: ListBox DataItemTemplate And Multiple Object Types Pin
BlitzPackage4-Mar-09 8:42
BlitzPackage4-Mar-09 8:42 
GeneralRe: ListBox DataItemTemplate And Multiple Object Types Pin
Mark Salsbery4-Mar-09 8:49
Mark Salsbery4-Mar-09 8:49 
GeneralRe: ListBox DataItemTemplate And Multiple Object Types Pin
BlitzPackage4-Mar-09 9:55
BlitzPackage4-Mar-09 9:55 
GeneralRe: ListBox DataItemTemplate And Multiple Object Types Pin
Mark Salsbery4-Mar-09 10:01
Mark Salsbery4-Mar-09 10:01 
GeneralRe: ListBox DataItemTemplate And Multiple Object Types Pin
BlitzPackage4-Mar-09 10:42
BlitzPackage4-Mar-09 10:42 
QuestionWPF ComboBox using Llinq Pin
GomathiR4-Mar-09 1:38
GomathiR4-Mar-09 1:38 
AnswerRe: WPF ComboBox using Llinq Pin
ABitSmart4-Mar-09 1:52
ABitSmart4-Mar-09 1:52 
GeneralRe: WPF ComboBox using Llinq Pin
BlitzPackage4-Mar-09 10:43
BlitzPackage4-Mar-09 10:43 
GeneralRe: WPF ComboBox using Llinq Pin
GomathiR4-Mar-09 18:20
GomathiR4-Mar-09 18:20 
GeneralRe: WPF ComboBox using Llinq Pin
ABitSmart4-Mar-09 18:25
ABitSmart4-Mar-09 18:25 
QuestionActual experience with WF Pin
Asher Barak3-Mar-09 22:35
professionalAsher Barak3-Mar-09 22:35 
AnswerRe: Actual experience with WF Pin
Wes Aday4-Mar-09 7:57
professionalWes Aday4-Mar-09 7:57 
GeneralRe: Actual experience with WF Pin
Asher Barak12-Mar-09 0:49
professionalAsher Barak12-Mar-09 0:49 
QuestionMfc Dll to be hoisted in WPF Pin
VCsamir3-Mar-09 19:02
VCsamir3-Mar-09 19:02 

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.