Search code examples
windows-phone-7windows-phone-7.1application-bar

How to add menu item to Application Bar to needed index?


I am adding menu item to Application bar using this code

ApplicationBar.MenuItems.Insert(0, refreshMenu);

I have 2 other items added from XAML.
But added menu item is adding to the end of list and becoming last menu item insted of being first one.

Is there any way to add menu item to needed index without removing all items and adding in needed order?

EDIT: When I removing menu item from first index, it is removing refresh menu, so the problem is on rendering of menu items.

Thanks


Solution

  • I didn't found any other solution other than I used (remove all items and add then from code each time). So I think the only acceptable way is one I used.