Пример #1
0
 public StockItemViewInfo(String name, Canvas icon, StockItemViewManager.Group group)
 {
     Name            = TranslatedName = name;
     Icon            = icon;
     Group           = group;
     TranslatedGroup = StockItemViewManager.TranslateGroup(group);
 }
Пример #2
0
        public StockItemViewInfo(String name, UIElement uiElement, StockItemViewManager.Group group)
        {
            Name = TranslatedName = name;
            var canvas = new Canvas();

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