Esempio n. 1
0
 public PriceTagItem(PriceTagItem source, PriceTag priceTag)
 {
     Bold            = source.Bold;
     BorderThickness = source.BorderThickness;
     BottomBorder    = source.BottomBorder;
     BottomMargin    = source.BottomMargin;
     FontSize        = source.FontSize;
     Height          = source.Height;
     IsAutoHeight    = source.IsAutoHeight;
     IsAutoWidth     = source.IsAutoWidth;
     IsNewLine       = source.IsNewLine;
     Italic          = source.Italic;
     LeftBorder      = source.LeftBorder;
     LeftMargin      = source.LeftMargin;
     Name            = source.Name;
     Position        = source.Position;
     PriceTagId      = priceTag.Id;
     RightBorder     = source.RightBorder;
     RightMargin     = source.RightMargin;
     Text            = source.Text;
     TextAlignment   = source.TextAlignment;
     TopBorder       = source.TopBorder;
     TopMargin       = source.TopMargin;
     Underline       = source.Underline;
     Width           = source.Width;
     Wrap            = source.Wrap;
 }
Esempio n. 2
0
 public static Border Preview(double width, double height, double borderThickness, IList <PriceTagItem> items)
 {
     return(new Border {
         BorderBrush = Brushes.Black,
         BorderThickness = new Thickness(borderThickness),
         Child = PriceTagItem.ToElement(width, height, items, DemoData),
         HorizontalAlignment = HorizontalAlignment.Center,
         VerticalAlignment = VerticalAlignment.Center
     });
 }
Esempio n. 3
0
 public PriceTagItem(PriceTagItem item)
     : this(item.Name)
 {
 }
Esempio n. 4
0
 public virtual FrameworkElement ToElement(TagPrintable line, Address address = null)
 {
     return(PriceTagItem.ToElement(Width, Height, Items, PriceTagItem.Map(line, address)));
 }