public MyMenuItemView(MyMenuItemInfo info) : this() { Icon.Key = info.IconName; Icon.Foreground = info.IconColor; Url = info.Url; _label.Text = info.Text; SetSubcontent(info.Description); }
public MyMenuItemView Add(MyMenuItemInfo info) { var item = new MyMenuItemView(info); return(Add(item)); }