Programmatically update a TKSideDrawerItem

2 posts, 0 answers
  1. Luca
    Luca avatar
    2 posts
    Member since:
    Apr 2017

    Posted 26 Apr Link to this post

    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 ?

  2. Luca
    Luca avatar
    2 posts
    Member since:
    Apr 2017

    Posted 28 Apr Link to this post

    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();

Back to Top