Click here to Skip to main content
15,905,874 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Mediaelement and stream Pin
Syed Mehroz Alam11-Oct-08 4:11
Syed Mehroz Alam11-Oct-08 4:11 
QuestionCreating user control for WPF Pin
Charith Jayasundara10-Oct-08 16:03
Charith Jayasundara10-Oct-08 16:03 
AnswerRe: Creating user control for WPF Pin
User 27100911-Oct-08 11:51
User 27100911-Oct-08 11:51 
GeneralRe: Creating user control for WPF Pin
Charith Jayasundara11-Oct-08 15:33
Charith Jayasundara11-Oct-08 15:33 
GeneralRe: Creating user control for WPF Pin
User 27100911-Oct-08 15:38
User 27100911-Oct-08 15:38 
QuestionHow to create a stacked of 3 images that can be rotated and zoomed in WPF Pin
garlover8-Oct-08 15:46
garlover8-Oct-08 15:46 
AnswerRe: How to create a stacked of 3 images that can be rotated and zoomed in WPF Pin
ColinM1238-Oct-08 18:46
ColinM1238-Oct-08 18:46 
QuestionDatabinding driving me crazy! Pin
esjq8-Oct-08 10:15
esjq8-Oct-08 10:15 
Hi all!
I've found lots of examples describing databinding, but still I haven't got a clue how to solve my problem. The frustrating thing is I think it is easy. But still, I'm lost...

In a WPF application, I invoke a WCF service call (contactClient.GetContacts()), which returns an array of Friend objects.

Window.xaml.cs:
private void PopulateContactsListBox()
{
   listBoxContacts.Items.Clear();
   listBoxContacts.ItemsSource = contactClient.GetContacts();
}


My intention is to let a listbox display the result returned from the WCF service call. And it does, but it doesn't display the actual data. Instead it displays the ToString() representation. In other words, the listbox displays the type returned by the service call; like "DataLayer.Friend".

So, how do I display the actual data from the service call in my listbox?

Thank you!
AnswerRe: Databinding driving me crazy! Pin
Adam Maras8-Oct-08 10:39
Adam Maras8-Oct-08 10:39 
AnswerRe: Databinding driving me crazy! Pin
Pete O'Hanlon8-Oct-08 11:47
mvePete O'Hanlon8-Oct-08 11:47 
GeneralRe: Databinding driving me crazy! Pin
ColinM1238-Oct-08 12:32
ColinM1238-Oct-08 12:32 
AnswerRe: Databinding driving me crazy! Pin
esjq9-Oct-08 10:25
esjq9-Oct-08 10:25 
GeneralRe: Databinding driving me crazy! Pin
Pete O'Hanlon9-Oct-08 22:01
mvePete O'Hanlon9-Oct-08 22:01 
QuestionMoXAML Power Toys 2 just released. Pin
Pete O'Hanlon7-Oct-08 12:11
mvePete O'Hanlon7-Oct-08 12:11 
AnswerRe: MoXAML Power Toys 2 just released. Pin
Mark Salsbery8-Oct-08 13:03
Mark Salsbery8-Oct-08 13:03 
GeneralRe: MoXAML Power Toys 2 just released. Pin
Pete O'Hanlon8-Oct-08 21:44
mvePete O'Hanlon8-Oct-08 21:44 
GeneralRe: MoXAML Power Toys 2 just released. Pin
User 27100910-Oct-08 0:40
User 27100910-Oct-08 0:40 
QuestionUIElement and InotifyPropertyChanged Pin
ezazazel7-Oct-08 2:07
ezazazel7-Oct-08 2:07 
AnswerRe: UIElement and InotifyPropertyChanged Pin
Insincere Dave7-Oct-08 6:48
Insincere Dave7-Oct-08 6:48 
GeneralRe: UIElement and InotifyPropertyChanged Pin
ezazazel7-Oct-08 7:08
ezazazel7-Oct-08 7:08 
GeneralControl in ItemTemplate can't bind to owner control dependency property? [modified] Pin
Zvorko7-Oct-08 1:31
Zvorko7-Oct-08 1:31 
AnswerRe: Control in ItemTemplate can't bind to owner control dependency property? Pin
User 27100910-Oct-08 0:45
User 27100910-Oct-08 0:45 
GeneralRe: Control in ItemTemplate can't bind to owner control dependency property? Pin
Zvorko10-Oct-08 0:52
Zvorko10-Oct-08 0:52 
GeneralRe: Control in ItemTemplate can't bind to owner control dependency property? Pin
User 27100910-Oct-08 0:54
User 27100910-Oct-08 0:54 
GeneralRe: Control in ItemTemplate can't bind to owner control dependency property? Pin
Zvorko10-Oct-08 1:27
Zvorko10-Oct-08 1:27 

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.