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); }
protected override MenuItem ModelToItem(BackgroundModel model) { var item = base.ModelToItem(model); item.Icon = new Image() { Source = assetsFactory.GetLayoutIcon(model.Layout) }; return(item); }