Exemplo n.º 1
0
        protected override List <NativeItemData> BuildNativeControlItems()
        {
            var retVal = new List <NativeItemData>();

            foreach (var item in Items)
            {
                string tag;
                string primaryText;
                if (item.Count > 0)
                {
                    primaryText = item.Text + " (+" + item.Count + ")";
                    tag         = "New";
                }
                else
                {
                    tag         = "";
                    primaryText = item.Text;
                }
                //item.Button
                var data = new NativeItemDataMm
                {
                    PrimaryText    = primaryText,
                    SecondaryText  = item.Event.ToString(),
                    Tag            = tag,
                    PrimaryImage   = null,
                    SecondaryImage = null,
                    Icon           = item.Icon
                };
                retVal.Add(data);
            }
            return(retVal);
        }
Exemplo n.º 2
0
        protected override List <NativeItemData> BuildNativeControlItems()
        {
            var retVal = new List <NativeItemData>();

            foreach (var item in Items)
            {
                var data = new NativeItemDataMm
                {
                    PrimaryText   = item.Text,
                    SecondaryText = item.Action.ToString(),
                    Icon          = item.Icon
                };
                retVal.Add(data);
            }
            return(retVal);
        }