public MyMenuItemView Add(MyMenuItemView item) { var hr = new BoxView { HeightRequest = 1, Color = Color.WhiteSmoke, VerticalOptions = LayoutOptions.End, Margin = new Thickness(IconSize, 0, 0, 0), }; var grid = new Grid { Children = { item, hr }, }; this.Children.Add(grid); ItemAdded?.Invoke(item); return(item); }
public MyMenuItemView Add(MyMenuItemInfo info) { var item = new MyMenuItemView(info); return(Add(item)); }