Example #1
0
 public PrinterViewInfo(String name, Canvas icon, PrinterViewManager.Group group)
 {
     Name            = TranslatedName = name;
     Icon            = icon;
     Group           = group;
     TranslatedGroup = PrinterViewManager.TranslateGroup(group);
 }
Example #2
0
        public PrinterViewInfo(String name, UIElement uiElement, PrinterViewManager.Group group)
        {
            Name = TranslatedName = name;
            var canvas = new Canvas();

            canvas.Children.Add(uiElement);
            Icon            = canvas;
            Group           = group;
            TranslatedGroup = PrinterViewManager.TranslateGroup(group);
        }