public SlicerViewInfo(String name, Canvas icon, SlicerViewManager.Group group) { Name = TranslatedName = name; Icon = icon; Group = group; TranslatedGroup = SlicerViewManager.TranslateGroup(group); }
public SlicerViewInfo(String name, UIElement uiElement, SlicerViewManager.Group group) { Name = TranslatedName = name; var canvas = new Canvas(); canvas.Children.Add(uiElement); Icon = canvas; Group = group; TranslatedGroup = SlicerViewManager.TranslateGroup(group); }