WPF Chat List Box - With user Image display
09:44 21 Jun 2013

Hello there i am working on a WPF Chat Application , i would like to save users pics at database and i would like to load each user with his/her pic to the friends list box and here is my current code but i dont know how to start with this .

        private void LoadFriends(Client.State client)
    {
        foreach (Client.Structures.Society.Friend friend in client.Friends.Values)
        {
            Friends_listBox.Items.Add(friend.Name);
            FriendsCount++;
        }
    }

i know how to add an item to a list box with Xaml code like this :

            

            

                

                

            

        

but i dont know to do this with C# code ...

an how i store users pics to database ??

any idea about this ?

c# wpf listbox chat