コード例 #1
0
        protected override MenuItem ModelToItem(ProfileModel model)
        {
            var             item       = base.ModelToItem(model);
            BackgroundModel background = backgroundCollection.Get(model.BackgroundId);

            item.Icon = new Image()
            {
                Source = assetsFactory.GetLayoutIcon(background.Layout)
            };
            return(item);
        }
コード例 #2
0
        protected override MenuItem ModelToItem(BackgroundModel model)
        {
            var item = base.ModelToItem(model);

            item.Icon = new Image()
            {
                Source = assetsFactory.GetLayoutIcon(model.Layout)
            };

            return(item);
        }