Yagami
Yagami

Reputation: 33

How to custom the ListBox?

I want to make a conversation view with ListBox, but I don't know how to start. Just like WhatsApp Conversation View...

enter image description here

Thanks~

Upvotes: 1

Views: 789

Answers (2)

Ku6opr
Ku6opr

Reputation: 8126

You need to create custom ItemTemplate for dialog items. Also, if you have some different layouts for incoming, outgoing, voice messages, etc, you may be interesting in Implementing DataTemplateSelector

Upvotes: 0

Henrik Hartz
Henrik Hartz

Reputation: 3675

You need to create a ItemTemplate for your listbox using a DataTemplate. However, as you require doing conditional formatting etc you probably want to write an element in C# that you can bind to in your delegate. See Windows Phone 7 add listbox with itemtemplate and datatemplate from code?

Upvotes: 1

Related Questions