private void UpdateItemsState() { var buttons = ButtonBarUtil.GetButtonsFromBarItems(TopItem.GetNavItemBarItems()); foreach (var button in buttons) { button.SemiTransparentType = ItemSemiTransparentType; button.UpdateState(); } }
public override void LayoutSubviews() { base.LayoutSubviews(); // manually adjusting position of items in landscape (stick it to bottom) if (!ScreenUtil.IsVerticalOrientation) { var itemViews = ButtonBarUtil.GetViewsFromBarItems(TopItem.GetNavItemBarItems()); foreach (var itemView in itemViews) { var frame = new CGRect( new CGPoint(itemView.Frame.X, Frame.Height - itemView.Frame.Height), itemView.Frame.Size); itemView.Frame = frame; } } }