This is a migrated thread and some comments may be shown as answers.

Programmatically update a TKSideDrawerItem

1 Answer 41 Views
SideDrawer - Xamarin.iOS
This is a migrated thread and some comments may be shown as answers.
Luca
Top achievements
Rank 1
Luca asked on 26 Apr 2017, 04:12 PM

Hi all,

I am wondering if it is possible to programmatically update a menu item (for instance change the text) or also hide and then re-show an item.

I can get the items by the Items property of the TKSideDrawerSection but when the update in the item doesn't update the view, is there a way to force the menu redrawing ?

1 Answer, 1 is accepted

Sort by
0
Luca
Top achievements
Rank 1
answered on 28 Apr 2017, 09:37 AM

If this can be useful for anyone:

after changing the item you want simply consider that the sidemenu is a tableview so you can use reload data.

 

SideDrawer.Sections[0].Items[0].Title = "new desc";

((UITableView)SideDrawer.Content).ReloadData();

Tags
SideDrawer - Xamarin.iOS
Asked by
Luca
Top achievements
Rank 1
Answers by
Luca
Top achievements
Rank 1
Share this question
or