public void InitWithModel(SideBarItemModel model) { UIImage image = UIImage.FromFile (model.IconPath); _imageView.Image = image; _title.Text = model.Title; }
void HandleRowSelectedEvent(SideBarItemModel selectedItem) { var handler = SideBarItemSelected; if (handler != null) { handler(selectedItem); } }
void HandleSideBarItemSelected(SideBarItemModel selectedItem) { UIImage contentImg = UIImage.FromFile(selectedItem.IconPath); SetImage (contentImg); _sideBarMediator.ToggleSideBar(); }