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