/// <summary> /// /// </summary> /// <param name="content"></param> public RibbonModelGalleryItem CreateGalleryItem(object content) { var r = new RibbonModelGalleryItem() { Content = content }; Items.Add(r); return(r); }
private static void AddGalleryItems_(Dictionary <object, object> dictionary, IList g) { foreach (var keyValuePair in dictionary) { var cat = new RibbonModelGalleryCategory() { Label = keyValuePair.Key.ToString() }; foreach (var vv in (IEnumerable)keyValuePair.Value) { var item = new RibbonModelGalleryItem() { Content = vv }; cat.Items.Add(item); } g.Add(cat); } }