c# - how to put a button at the bottom of the listbox in wp7? -


windows phone 7.5 , above.

i wanna add button @ bottom of list, user can click fetch more articles.

i put button inside listbox in xaml. not work, when itemsource of listbox binded @ runtime, button disappear.

how approach goal?

one solution implement part of binding set last item display 'load more...'.

for example, if listbox template shows picture, header , description text , retrieve 25 items each time. can grab 25 items source manually add item header 'load more...' bind list. can check if 'load more...' item clicked checking header text or if model has unique identifiers each item can give 'load more...' item id of -1 or other unique value.

the other solution automatically detect when users scroll end (or near end) of list box automatically load more data. check these tutorials on how implement this:

loading data when user scrolls end of list in windows phone 7

detect when listbox scrolls end (wp7)

wp7 – how extend listbox when reaching last item


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -