Exemple #1
0
        public MyMenuItemView(MyMenuItemInfo info)
            : this()
        {
            Icon.Key        = info.IconName;
            Icon.Foreground = info.IconColor;

            Url         = info.Url;
            _label.Text = info.Text;

            SetSubcontent(info.Description);
        }
Exemple #2
0
        public MyMenuItemView Add(MyMenuItemInfo info)
        {
            var item = new MyMenuItemView(info);

            return(Add(item));
        }