Search code examples
listboxwindows-phone

How to change Windows phone listbox fill direction


I want to change the listbox fill direction from the bottom to top. In case there is just one item in the listbox, it is at the bottom of the listbox as default. if I add more items, how to make the new item be above the old item?


Solution

  • This should be done before you bind your data to the listbox control. Add the new item to the to top of the list(data source) and then bind it with the control.