Click here to Skip to main content
15,908,264 members
Home / Discussions / WPF
   

WPF

 
QuestionSL Content not displaying Pin
JMurfey20-Sep-11 9:58
JMurfey20-Sep-11 9:58 
AnswerRe: SL Content not displaying Pin
DotNetXenon23-Sep-11 4:19
DotNetXenon23-Sep-11 4:19 
GeneralRe: SL Content not displaying Pin
JMurfey23-Sep-11 12:57
JMurfey23-Sep-11 12:57 
GeneralRe: SL Content not displaying Pin
JMurfey26-Sep-11 10:15
JMurfey26-Sep-11 10:15 
QuestionDynamicly load DLL's Pin
columbos1492718-Sep-11 22:54
columbos1492718-Sep-11 22:54 
AnswerRe: Dynamicly load DLL's Pin
Daniel.Grondal19-Sep-11 23:31
Daniel.Grondal19-Sep-11 23:31 
Question"XmlDataProvider has inline XML that does not explicitly set its XmlNamespace (xmlns="")" Pin
devvvy18-Sep-11 16:41
devvvy18-Sep-11 16:41 
AnswerRe: "XmlDataProvider has inline XML that does not explicitly set its XmlNamespace (xmlns="")" Pin
Mamta D19-Sep-11 18:29
Mamta D19-Sep-11 18:29 
AnswerRe: ToString vs Simple DataTemplate Pin
SledgeHammer0115-Sep-11 13:10
SledgeHammer0115-Sep-11 13:10 
GeneralRe: ToString vs Simple DataTemplate Pin
Member 103390715-Sep-11 22:47
Member 103390715-Sep-11 22:47 
AnswerRe: ToString vs Simple DataTemplate Pin
Kim Breugelmans15-Sep-11 22:54
Kim Breugelmans15-Sep-11 22:54 
AnswerRe: ToString vs Simple DataTemplate Pin
Member 103390715-Sep-11 22:57
Member 103390715-Sep-11 22:57 
I would say that ToString "converts" the whole object to a string, simple as that. Which means 1) you can't return any fancy colorful represantation other than a simple string and 2) the ToString() is global application-wise, meaning that you can't make two comboboxes displaying the same list of items make display slightly different things (which you can do with DataTamplates).

DataTemplates are much more versatile, can be specific for a particular control (combobox) or used globally. They can also display much more complex data than just a string.

Then there are value converters...

The call is yours, ToString may be just fine for simple combobox item represatation, setting ItemTemplate doesn't hurt either.
GeneralRe: ToString vs Simple DataTemplate Pin
Member 103390717-Sep-11 9:34
Member 103390717-Sep-11 9:34 
AnswerRe: ToString vs Simple DataTemplate Pin
Simon Bang Terkildsen16-Sep-11 6:05
Simon Bang Terkildsen16-Sep-11 6:05 
AnswerRe: Tab Change DataContext becomes Null Pin
Pete O'Hanlon15-Sep-11 4:52
mvePete O'Hanlon15-Sep-11 4:52 
QuestionBind to property in static instance of class Pin
Mc_Topaz14-Sep-11 2:30
Mc_Topaz14-Sep-11 2:30 
AnswerRe: Bind to property in static instance of class Pin
Pete O'Hanlon14-Sep-11 3:23
mvePete O'Hanlon14-Sep-11 3:23 
GeneralRe: Bind to property in static instance of class Pin
Mc_Topaz14-Sep-11 4:15
Mc_Topaz14-Sep-11 4:15 
GeneralRe: Bind to property in static instance of class Pin
Ian Shlasko14-Sep-11 4:27
Ian Shlasko14-Sep-11 4:27 
GeneralRe: Bind to property in static instance of class Pin
Mc_Topaz14-Sep-11 4:54
Mc_Topaz14-Sep-11 4:54 
GeneralRe: Bind to property in static instance of class Pin
Ian Shlasko14-Sep-11 5:00
Ian Shlasko14-Sep-11 5:00 
GeneralRe: Bind to property in static instance of class Pin
Pete O'Hanlon14-Sep-11 4:39
mvePete O'Hanlon14-Sep-11 4:39 
GeneralRe: Bind to property in static instance of class Pin
Mc_Topaz14-Sep-11 4:49
Mc_Topaz14-Sep-11 4:49 
QuestionWPF: Unable to set MouseOver effect for ComboBox Pin
All Time Programming13-Sep-11 0:39
All Time Programming13-Sep-11 0:39 
AnswerRe: WPF: Unable to set MouseOver effect for ComboBox Pin
Ian Shlasko14-Sep-11 4:40
Ian Shlasko14-Sep-11 4:40 

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.